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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/download_emails.py b/python/download_emails.py
index eff9f867..1453b51c 100644
--- a/python/download_emails.py
+++ b/python/download_emails.py
@@ -111,7 +111,7 @@ def main():
if msg['id'] not in current_msgs:
try:
subject, content = msg_content(get_msg(service, 'me', msg['id']))
- except binascii.Error:
+ except (binascii.Error, KeyError):
print("error decoding {0}".format(msg['id']))
continue
else: