Skip to content

Commit

Permalink
Log crypto error
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgarbar committed Jul 17, 2024
1 parent ec876bc commit 25b09e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ch_backup/backup/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,10 @@ def get_backup(
try:
return self._load_metadata(path, not use_light_meta)
except CryptoError:
logging.exception(
"Attempt to download encrypted metadata from {} has failed. Will try to download it as not encrypted",
path,
)
return self._load_metadata(path, False)

def get_backups(self, use_light_meta: bool = False) -> List[BackupMetadata]:
Expand Down

0 comments on commit 25b09e4

Please sign in to comment.