From 6a1db9ea0fe8b48bf6a2ed10c4837cdf234a447b Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Mon, 26 Dec 2005 13:28:13 +0000 Subject: [PATCH] should work now. wed plz test --- src/common/xmpp/transports.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/xmpp/transports.py b/src/common/xmpp/transports.py index 216df661f..21f0f4900 100644 --- a/src/common/xmpp/transports.py +++ b/src/common/xmpp/transports.py @@ -46,7 +46,7 @@ def temp_failure_retry(func, *args, **kwargs): if hasattr(ex, 'errno'): errnum = ex.errno else: - errnum = int(str(ex)[0]) + errnum = ex.args[0] if errnum == errno.EINTR: continue else: