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
I've had BaGoMa crash a couple times now while downloading all my mail. This one, however, didn't crash the program but kept running.
1% 223/20251 ERROR Error retrieving message
Traceback (most recent call last):
File "./bagoma.py", line 523, in __init__
self['uid'] = uIdMatch.search(data[0][0]).group(1)
TypeError: 'NoneType' object is not subscriptable
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 842, in emit
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 719, in format
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 464, in format
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 328, in getMessage
TypeError: %d format: a number is required, not str
Logged from file bagoma.py, line 276
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 842, in emit
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 719, in format
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 464, in format
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/logging/__init__.py", line 328, in getMessage
TypeError: %d format: a number is required, not str
Logged from file bagoma.py, line 276
The text was updated successfully, but these errors were encountered:
It looks like you're getting UID's that are not numeric. Can you run it with '--log DEBUG' option and capture the standard output? For example: "bagoma.py [options...] > debug.log"
If you send me the debug.log file to gburca dash bagoma at ebixio dot com, I'll take a look and see what's happening.
It looks like the useful IMAP information is logged to stderr. You'll need to redirect both stdout and stderr by adding "2>&1" at the end of your command above, so you'll end up with: "bagoma.py [options...] > debug.log 2>&1"
Please delete any sensitive information (especially the LOGIN line) from that file before sending it.
When I re-ran the script a couple times it finally worked, and eventually completed backing up my mail. From now on when I run my backup script I'll capture stderr in case this happens again.
It's possible that there are non-numeric UID's in my mailbox, as I imported a lot of old mail into Gmail a few years ago.
I've had BaGoMa crash a couple times now while downloading all my mail. This one, however, didn't crash the program but kept running.
The text was updated successfully, but these errors were encountered: