aboutsummaryrefslogtreecommitdiffstats
path: root/python/download_emails.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/download_emails.py')
-rw-r--r--python/download_emails.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/python/download_emails.py b/python/download_emails.py
index 2a124d2e..1baab124 100644
--- a/python/download_emails.py
+++ b/python/download_emails.py
@@ -16,11 +16,7 @@ def save_emails(update=True):
DATA_DIR = Path(os.getenv("DATA_DIR"))
if update:
- try:
- last_history_id = int((DATA_DIR / ".lastHistoryId").read_text())
- except FileNotFoundError:
- logging.error("can't find .lastHistoryId file")
- sys.exit()
+ last_history_id = int((DATA_DIR / ".lastHistoryId").read_text())
existing_msgs = []
else:
p = DATA_DIR / "swaptions"