Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
e-kwsm committed Dec 20, 2023
1 parent 0130215 commit 3e1a456
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/legacy_tests/test_constructor.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def my_time_constructor(constructor, node):
tz = None
try:
tz = dt.tzinfo.tzname(dt)
except:
except Exception:
pass
return [dt, tz]

Expand Down
4 changes: 2 additions & 2 deletions tests/legacy_tests/test_multi_constructor.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ def myconstructor2(constructor, tag, node):
string = ''
try:
i = tag.index('!') + 1
except:
except Exception:
try:
i = tag.rindex(':') + 1
except:
except Exception:
pass
if i >= 0:
tag = tag[i:]
Expand Down
2 changes: 1 addition & 1 deletion tests/legacy_tests/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def test_implicit_resolver(data_filename, skip_filename, verbose=False):
# Test loading
try:
loaded = yaml.safe_load(input)
except:
except Exception:
print("Error:", sys.exc_info()[0], '(', sys.exc_info()[1], ')')
fail+=1
_fail(input, test)
Expand Down

0 comments on commit 3e1a456

Please sign in to comment.