You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "myprog.py", line 49, in main
m.archive()
File "...python/3.10.1/lib/python3.10/site-packages/simplegmail/message.py", line 218, in archive
self.remove_label(label.INBOX)
File "...python/3.10.1/lib/python3.10/site-packages/simplegmail/message.py", line 328, in remove_label
self.remove_labels([to_remove])
File "...python/3.10.1/lib/python3.10/site-packages/simplegmail/message.py", line 343, in remove_labels
self.modify_labels([], to_remove)
File "...python/3.10.1/lib/python3.10/site-packages/simplegmail/message.py", line 381, in modify_labels
and all([lbl not in res['labelIds'] for lbl in to_remove]),
File "...python/3.10.1/lib/python3.10/site-packages/simplegmail/message.py", line 381, in
and all([lbl not in res['labelIds'] for lbl in to_remove]),
KeyError: 'labelIds'
Workaround:
Ignore KeyError
The text was updated successfully, but these errors were encountered:
File "myprog.py", line 49, in main
m.archive()
File "...python/3.10.1/lib/python3.10/site-packages/simplegmail/message.py", line 218, in archive
self.remove_label(label.INBOX)
File "...python/3.10.1/lib/python3.10/site-packages/simplegmail/message.py", line 328, in remove_label
self.remove_labels([to_remove])
File "...python/3.10.1/lib/python3.10/site-packages/simplegmail/message.py", line 343, in remove_labels
self.modify_labels([], to_remove)
File "...python/3.10.1/lib/python3.10/site-packages/simplegmail/message.py", line 381, in modify_labels
and all([lbl not in res['labelIds'] for lbl in to_remove]),
File "...python/3.10.1/lib/python3.10/site-packages/simplegmail/message.py", line 381, in
and all([lbl not in res['labelIds'] for lbl in to_remove]),
KeyError: 'labelIds'
Workaround:
Ignore KeyError
The text was updated successfully, but these errors were encountered: