diff options
author | Eli Collins <elic@assurancetechnologies.com> | 2012-02-08 23:25:45 -0500 |
---|---|---|
committer | Eli Collins <elic@assurancetechnologies.com> | 2012-02-08 23:25:45 -0500 |
commit | 4712bcd50e12e8ed2e8c135d88ed49951dd45bdf (patch) | |
tree | ba00b4a8b0f6fb28c8659c26dab94880dc93cc65 /passlib/utils | |
parent | bf927985d1fe8df1b6a1cb9db4c314bf4c4c13af (diff) | |
download | passlib-4712bcd50e12e8ed2e8c135d88ed49951dd45bdf.tar.gz |
renamed passlib.exc warning classes
Diffstat (limited to 'passlib/utils')
-rw-r--r-- | passlib/utils/handlers.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/passlib/utils/handlers.py b/passlib/utils/handlers.py index 3bba10a..f404b47 100644 --- a/passlib/utils/handlers.py +++ b/passlib/utils/handlers.py @@ -13,7 +13,7 @@ import os from warnings import warn #site #libs -from passlib.exc import MissingBackendError, PasslibHandlerWarning, \ +from passlib.exc import MissingBackendError, PasslibHashWarning, \ PasslibRuntimeWarning from passlib.registry import get_crypt_handler from passlib.utils import is_crypt_handler @@ -867,7 +867,7 @@ class HasSalt(GenericHandler): msg = "salt too large (%s requires %s %d %s)" % (self.name, "exactly" if mx == mn else "<=", mx, self._salt_unit) if self.relaxed: - warn(msg, PasslibHandlerWarning) + warn(msg, PasslibHashWarning) salt = self._truncate_salt(salt, mx) else: raise ValueError(msg) @@ -1023,7 +1023,7 @@ class HasRounds(GenericHandler): if rounds < mn: msg = "rounds too low (%s requires >= %d rounds)" % (self.name, mn) if self.relaxed: - warn(msg, PasslibHandlerWarning) + warn(msg, PasslibHashWarning) rounds = mn else: raise ValueError(msg) @@ -1032,7 +1032,7 @@ class HasRounds(GenericHandler): if mx and rounds > mx: msg = "rounds too high (%s requires <= %d rounds)" % (self.name, mx) if self.relaxed: - warn(msg, PasslibHandlerWarning) + warn(msg, PasslibHashWarning) rounds = mx else: raise ValueError(msg) |