summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-07-04 18:25:22 -0300
committerTomás Touceda <chiiph@leap.se>2013-07-05 16:12:15 -0300
commite494017766bf59f18556ce59af933d357165d3bd (patch)
tree3b4918f732e5ca80721cb65472cc8b9d475ac1b8 /src
parentaf009064f8affdbcd060ec5c7e7087658f3ff2f9 (diff)
Broaden the exception type to catch
Diffstat (limited to 'src')
-rw-r--r--src/leap/crypto/srpauth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/crypto/srpauth.py b/src/leap/crypto/srpauth.py
index ad1afd4c..781d67ae 100644
--- a/src/leap/crypto/srpauth.py
+++ b/src/leap/crypto/srpauth.py
@@ -215,7 +215,7 @@ class SRPAuth(QtCore.QObject):
salt, B = salt_B
unhex_salt = self._safe_unhexlify(salt)
unhex_B = self._safe_unhexlify(B)
- except TypeError as e:
+ except (TypeError, ValueError) as e:
logger.error("Bad data from server: %r" % (e,))
raise SRPAuthenticationError(self.tr("The data sent from "
"the server had errors"))