Skip to content

Commit

Permalink
make manifest seal more resiliant
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticroentgen committed Jan 17, 2024
1 parent f1af521 commit d32dc62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,10 @@ def seal_manifest(guild_id, channel_id):
seal_path = manifest_path.replace('.manifest','.seal')

# load the manifest contents
if not os.path.exists(manifest_path):
print(f'No manifest for {guild_id} - {channel_id}. Likly empty channel. Skipping seal.')
return

with open(manifest_path, 'r', encoding='utf-8') as manifest:
man_str = manifest.read()
_, manifest_hash = hash_string(man_str)
Expand Down

0 comments on commit d32dc62

Please sign in to comment.