Skip to content

Commit fc468aa

Browse files
committed
exception expect is too broad
1 parent fa9004c commit fc468aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hooks/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def is_dict_var(obj: Any) -> bool:
2626
else:
2727
try:
2828
return isinstance(eval(str(obj)), dict)
29-
except:
29+
except SyntaxError:
3030
return False
3131

3232

@@ -36,7 +36,7 @@ def is_list_var(obj: Any) -> bool:
3636
else:
3737
try:
3838
return isinstance(eval(str(obj)), list)
39-
except:
39+
except SyntaxError:
4040
return False
4141

4242

0 commit comments

Comments
 (0)