summaryrefslogtreecommitdiff
path: root/passlib/handlers/cisco.py
diff options
context:
space:
mode:
Diffstat (limited to 'passlib/handlers/cisco.py')
-rw-r--r--passlib/handlers/cisco.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/passlib/handlers/cisco.py b/passlib/handlers/cisco.py
index 184134e..c61a105 100644
--- a/passlib/handlers/cisco.py
+++ b/passlib/handlers/cisco.py
@@ -149,7 +149,7 @@ class cisco_type7(uh.GenericHandler):
else:
raise TypeError("no salt specified")
if not isinstance(salt, int):
- raise TypeError("salt must be an integer")
+ raise uh.exc.ExpectedTypeError(salt, "integer", "salt")
if salt < 0 or salt > self.max_salt_value:
msg = "salt/offset must be in 0..52 range"
if self.relaxed: