diff options
| author | Anthony Sottile <asottile@umich.edu> | 2021-04-18 09:17:48 -0700 |
|---|---|---|
| committer | Anthony Sottile <asottile@umich.edu> | 2021-04-18 09:23:48 -0700 |
| commit | af1668bf04079b1a8db5910a5e3697c7c8db8fc9 (patch) | |
| tree | 65405b4d3c2c5e1a90fa5eb3d7c8d6b7d4c18c68 /src/flake8/exceptions.py | |
| parent | a7174759e9a651405ef37db511ac1168e3bbdec5 (diff) | |
| download | flake8-af1668bf04079b1a8db5910a5e3697c7c8db8fc9.tar.gz | |
extend black formatting to tests as well
Diffstat (limited to 'src/flake8/exceptions.py')
| -rw-r--r-- | src/flake8/exceptions.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/flake8/exceptions.py b/src/flake8/exceptions.py index a8d2f6e..4b0ddd1 100644 --- a/src/flake8/exceptions.py +++ b/src/flake8/exceptions.py @@ -39,9 +39,7 @@ class InvalidSyntax(Flake8Exception): def __init__(self, exception: Exception) -> None: """Initialize our InvalidSyntax exception.""" self.original_exception = exception - self.error_message = ( - f"{type(exception).__name__}: {exception.args[0]}" - ) + self.error_message = f"{type(exception).__name__}: {exception.args[0]}" self.error_code = "E902" self.line_number = 1 self.column_number = 0 |
