Skip to content

Commit

Permalink
fixup! plugins.handlers: catch all exceptions from version determination
Browse files Browse the repository at this point in the history
Do not use bare `except`
  • Loading branch information
SnoopJ committed Feb 24, 2024
1 parent 9df81ff commit ebf8ba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sopel/plugins/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ def get_version(self) -> Optional[str]:
):
try:
version = importlib.metadata.version(self.module.__package__)
except:
except Exception:
# Just give up
# Can be caused by empty package name, mismatch between package/project names
pass
Expand Down

0 comments on commit ebf8ba9

Please sign in to comment.