Skip to content

Commit 23d0c41

Browse files
committed
Fix to use flake8 bug -> use v3.9.2
1 parent ac0fd00 commit 23d0c41

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
tox
2+
flake8==3.9.2
23
pytest
34
pytest-cov
45
pytest-flake8

src/fosslight_reuse/cli.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@ def main():
2121
parser.add_argument('--help', '-h', help='Print help message', action='store_true', dest='help')
2222
try:
2323
args = parser.parse_args()
24-
except:
24+
except SystemExit:
2525
print_help_msg()
2626

2727
if args.help:
2828
print_help_msg()
2929

30-
3130
if args.mode == "lint":
3231
run_lint(args.path, args.file, args.disable, args.output)
3332
elif args.mode == "report":

0 commit comments

Comments
 (0)