Skip to content

Commit

Permalink
Update repo.py
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Sep 23, 2024
1 parent 73bf48d commit 08d6a42
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tagbot/action/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,13 @@ def _registry_path(self) -> Optional[str]:
# show file contents if cannot be decoded
try:
string_contents = contents.decoded_content.decode()
except:
raise Exception(f"Registry.toml could not be decoded: {contents}")
except AssertionError:
logger.info(
f"Registry.toml could not be decoded. Raw contents: {contents}"
)
# rethrow now we've logged info
raise

registry = toml.loads(string_contents)

if uuid in registry["packages"]:
Expand Down

0 comments on commit 08d6a42

Please sign in to comment.