Skip to content

Commit

Permalink
🔖 0.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
RustySnek committed Aug 3, 2024
1 parent a2483c1 commit 3e6a57b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/reload.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@


def decode_module_name(module: str | bytes):
if isinstance(module, bytes):
return module.decode()
elif isinstance(module, str):
if isinstance(module, str):
return module
elif isinstance(module, bytes):
return module.decode()
else:
raise Exception("Could not decode module name properly.")

Expand Down

0 comments on commit 3e6a57b

Please sign in to comment.