if pageContent is None (as it can be if gmail does not respond correctly / network error etc) the library bails out with an AttributeError.
This can be 'fixed' or at least made tidier to handle from other peoples programs by adding error handling code around this call:
On line 92 of libgmail.py:
lines = pageContent.splitlines()
if pageContent is None (as it can be if gmail does not respond correctly / network error etc) the library bails out with an AttributeError.
This can be 'fixed' or at least made tidier to handle from other peoples programs by adding error handling code around this call:
try:
lines = pageContent.splitlines()
except AttributeError:
raise GmailError, 'Gmail failed to return required data.'
Keep up the good work,
stoical
Thanks, I will apply your patch.
Regards,
Stas Zytkiewicz (libgmail dev)