diff options
Diffstat (limited to 'passlib/registry.py')
-rw-r--r-- | passlib/registry.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/passlib/registry.py b/passlib/registry.py index 5806816..e9781d9 100644 --- a/passlib/registry.py +++ b/passlib/registry.py @@ -294,6 +294,7 @@ def get_crypt_handler(name, default=_NOTSET): return handler #normalize name (and if changed, check dict again) + assert isinstance(name, str), "name must be str instance" alt = name.replace("-","_").lower() if alt != name: warn("handler names should be lower-case, and use underscores instead " |