Skip to content

Commit

Permalink
handle all pickle exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
rehanzo committed Feb 12, 2024
1 parent b971497 commit 3c1c78b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reminders.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def __init__(self):
try:
with open(filename, 'rb') as f:
self.reminders = pickle.load(f)
except FileNotFoundError:
except Exception as e:
self.reminders = []

def check_reminders(self, client):
Expand Down

0 comments on commit 3c1c78b

Please sign in to comment.