Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Oct 6, 2024
1 parent 415bd1d commit b3eeb3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ repos:
additional_dependencies:
- pytest-timeout
- argopt
- pyyaml
- tabulate
- tqdm
- repo: https://github.com/PyCQA/flake8
Expand Down
2 changes: 1 addition & 1 deletion gitfame/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def Max(it, empty_default=0):
try:
return max(it)
except ValueError as e:
if 'empty sequence' in str(e):
if 'empty' in str(e):
return empty_default
raise # pragma: no cover

Expand Down

0 comments on commit b3eeb3e

Please sign in to comment.