Page MenuHomePhorge

Make sure imaplib exception argument is a string before using split() (#5387)
ClosedPublic

Authored by machniak on Apr 18 2016, 2:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Mar 27, 10:54 PM
Unknown Object (File)
Mar 2 2024, 4:42 PM
Unknown Object (File)
Feb 22 2024, 9:21 PM
Unknown Object (File)
Jan 20 2024, 5:45 PM
Unknown Object (File)
Jan 19 2024, 12:05 PM
Unknown Object (File)
Dec 30 2023, 7:07 PM
Unknown Object (File)
Dec 21 2023, 10:41 AM
Unknown Object (File)
Dec 21 2023, 5:28 AM
Subscribers
None

Details

Summary

Looks like imaplib in some conditions can throw exceptions without the message or
the message is not a string. We'll cast to string before using split() to prevent from
"AttributeError: 'int' object has no attribute 'split'" errors.

Diff Detail

Repository
rP pykolab
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

machniak retitled this revision from to Make sure imaplib exception argument is a string before using split() (#5387).
machniak updated this object.
machniak edited the test plan for this revision. (Show Details)
machniak added a reviewer: PyKolab Developers.
This revision is now accepted and ready to land.May 4 2016, 3:55 PM
This revision was automatically updated to reflect the committed changes.