Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Commit

Permalink
Adding pragma no branch
Browse files Browse the repository at this point in the history
  • Loading branch information
omesser committed Aug 23, 2023
1 parent 2059f21 commit 02232ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlem/utils/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def get_module_version(mod: ModuleType) -> Optional[str]:
pass

# if there's a package-file, try to get it from there
if mod.__file__ is not None:
if mod.__file__ is not None: # pragma: no branch
for name in os.listdir(os.path.dirname(mod.__file__)):
m = re.match(re.escape(mod.__name__) + "-(.+)\\.dist-info", name)
if m:
Expand Down

0 comments on commit 02232ca

Please sign in to comment.