Author: andar

Revision: 5145

Log:
        Fix deprecation warning

Diff:
Modified: trunk/deluge/core/rpcserver.py
===================================================================
--- trunk/deluge/core/rpcserver.py      2009-04-23 20:21:01 UTC (rev 5144)
+++ trunk/deluge/core/rpcserver.py      2009-04-23 20:30:09 UTC (rev 5145)
@@ -210,7 +210,7 @@
                 RPC_ERROR,
                 request_id,
                 (exceptionType.__name__,
-                exceptionValue.message,
+                exceptionValue.args[0] if len(exceptionValue.args) == 1 else 
"",
                 "".join(traceback.format_tb(exceptionTraceback)))
             ))
 



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to