Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F118356023
D135.1775776215.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D135.1775776215.diff
View Options
diff --git a/cyruslib.py b/cyruslib.py
--- a/cyruslib.py
+++ b/cyruslib.py
@@ -382,7 +382,7 @@
if ok(res):
return res, msg
except Exception, info:
- error = info.args[0].split(':').pop().strip()
+ error = str(info).split(':').pop().strip()
if error.upper().startswith('BAD'):
error = error.split('BAD', 1).pop().strip()
error = unquote(error[1:-1], '\'')
@@ -411,7 +411,7 @@
res, msg = self.m.login(username, password)
admin = self.m.isadmin()
except Exception, info:
- error = info.args[0].split(':').pop().strip()
+ error = str(info).split(':').pop().strip()
self.__doexception("LOGIN", error)
if admin:
@@ -443,7 +443,7 @@
try:
res, msg = self.m.logout()
except Exception, info:
- error = info.args[0].split(':').pop().strip()
+ error = str(info).split(':').pop().strip()
self.__doexception("LOGOUT", error)
self.AUTH = False
self.ADMIN = None
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 9, 11:10 PM (16 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18833420
Default Alt Text
D135.1775776215.diff (1 KB)
Attached To
Mode
D135: Make sure imaplib exception argument is a string before using split() (#5387)
Attached
Detach File
Event Timeline