Skip to content

Commit cad823a

Browse files
committed
make flake8 happy
1 parent 3d393ba commit cad823a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hug/development_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def hug(
7777
sys.exit(1)
7878

7979
sys.argv[1:] = sys.argv[
80-
(sys.argv.index("-c") if "-c" in sys.argv else sys.argv.index("--command")) + 2 :
80+
(sys.argv.index("-c") if "-c" in sys.argv else sys.argv.index("--command")) + 2:
8181
]
8282
api.cli.commands[command]()
8383
return

hug/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ def __call__(self, value):
398398
for type_method in self.types:
399399
try:
400400
return type_method(value)
401-
except:
401+
except BaseException:
402402
pass
403403
raise ValueError(self.__doc__)
404404

0 commit comments

Comments
 (0)