Skip to content

Commit

Permalink
Add warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
drew2a committed Jan 19, 2022
1 parent b1425d1 commit 8c0f0c9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def load(self):
self.logger.info(f'Loading storage from {self.path}')
try:
self.data = StorageData.parse_file(self.path)
except Exception: # pylint: disable=broad-except
except Exception as e: # pylint: disable=broad-except
self.logger.warning(e)
self.logger.info('The storage file does not exist or corrupted. Create a new storage.')
self.data = StorageData()
self.logger.info(f'Loaded storage: {self.data}')
Expand Down

0 comments on commit 8c0f0c9

Please sign in to comment.