Skip to content

Commit

Permalink
Please lint by not naming an exception
Browse files Browse the repository at this point in the history
  • Loading branch information
jswelling committed May 2, 2024
1 parent aa37cf5 commit d07800c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_semantic_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_plugin_semantic_versions():
validator = cls(['.'], 'someassay', plugin_dir, [])
try:
ver = semantic_version.Version(cls.version)
except ValueError as excp:
except ValueError:
if not fb_regex.match(cls.version):
assert False, (f"The plugin {cls.__name__} has version string"
f" {cls.version}, which is not a valid semantic"
Expand Down

0 comments on commit d07800c

Please sign in to comment.