Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Special chars not escaped in the error __str__ #9

Closed
UncleGoogle opened this issue May 17, 2019 · 2 comments
Closed

Special chars not escaped in the error __str__ #9

UncleGoogle opened this issue May 17, 2019 · 2 comments
Assignees
Labels

Comments

@UncleGoogle
Copy link

In [14]: try:
    ...:     pathvalidate.validate_filepath('asdf\rsdf')
    ...: except Exception as e:
    ...:     print(e)
    ...: 
    ...: 
sdf', reason=INVALID_CHARACTERars=(\
@UncleGoogle UncleGoogle changed the title Special chars not escaped the error __str__ Special chars not escaped in the error __str__ May 17, 2019
@thombashi thombashi self-assigned this May 18, 2019
@thombashi thombashi added the bug label May 18, 2019
@thombashi
Copy link
Owner

Thank you for your report.

The error fixed at pathvalidate 0.28.2 as the following:

>>> pathvalidate.__version__
'0.28.2'
>>> try:
...     pathvalidate.validate_filepath('asdf\rsdf')
... except Exception as e:
...     print(e)
...
invalid char found: invalid-chars=('\r'), value=''asdf\rsdf'', reason=INVALID_CHARACTER

Please try to upgrade the package.

@UncleGoogle
Copy link
Author

Thanks for instant fix! repr for greater good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants