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: