Skip to content

Commit

Permalink
add general Exception to find_metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
davedavemckay committed Sep 30, 2024
1 parent b102566 commit 8111fe8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions csd3-side/scripts/lsst-backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ def find_metadata(key: str, bucket) -> List[str]:
existing_zip_contents = bucket.Object(key).metadata['zip-contents'].split('|') # use | as separator
except KeyError:
return None
except Exception as e:
return None
if existing_zip_contents:
return existing_zip_contents
else:
Expand Down

0 comments on commit 8111fe8

Please sign in to comment.