]> code.delx.au - pymsnt/blobdiff - src/tlib/msn/msnw.py
Cheap way of fixing deprecation warning in Twisted 2.0 about errback with string...
[pymsnt] / src / tlib / msn / msnw.py
index b0edb3066831e03cb6e99b5afc363fb5b49b7e64..b9e3028115a25c4ca21afa6bfd2bc5d1d03b71ff 100644 (file)
@@ -52,7 +52,7 @@ class MSNConnection:
                def timeout():
                        self.timeout = None
                        if not d.called:
-                               d.errback("Timeout")
+                               d.errback(Exception("Timeout"))
                                self.logOut() # Clean up everything
                self.timeout = reactor.callLater(30, timeout)
                dispatchFactory = msn.DispatchFactory()