1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-25 01:06:50 +00:00

Merge pull request #1186 from ThomasWaldmann/ignore-F405

flake8: ignore F405, fixes #1185
This commit is contained in:
TW 2016-06-19 15:09:26 +02:00 committed by GitHub
commit 195a6b9093
2 changed files with 2 additions and 2 deletions

View file

@ -559,7 +559,7 @@ def format_line(format, data):
except (KeyError, ValueError) as e:
# this should catch format errors
print('Error in lineformat: "{}" - reason "{}"'.format(format, str(e)))
except:
except Exception as e:
# something unexpected, print error and raise exception
print('Error in lineformat: "{}" - reason "{}"'.format(format, str(e)))
raise

View file

@ -5,7 +5,7 @@ python_files = testsuite/*.py
# please note that the values are adjusted so that they do not cause failures
# with existing code. if you want to change them, you should first fix all
# flake8 failures that appear with your change.
ignore = E122,E123,E125,E126,E127,E128,E226,E402,F401,F811
ignore = E122,E123,E125,E126,E127,E128,E226,E402,F401,F405,F811
# line length long term target: 120
max-line-length = 255
exclude = build,dist,.git,.idea,.cache,.tox,docs/conf.py