mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-07 05:26:53 +00:00
Ensure exceptions are pickleable
This commit is contained in:
parent
9b770f590e
commit
e8de066f94
3 changed files with 74 additions and 27 deletions
|
|
@ -118,7 +118,7 @@ class FileProcessor(object):
|
|||
tokenize.generate_tokens(lambda: next(line_iter))
|
||||
)
|
||||
except tokenize.TokenError as exc:
|
||||
raise exceptions.InvalidSyntax(exc.message, exception=exc)
|
||||
raise exceptions.InvalidSyntax(exception=exc)
|
||||
|
||||
return self._file_tokens
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue