diff options
| author | Eli Collins <elic@assurancetechnologies.com> | 2020-10-05 21:14:03 -0400 |
|---|---|---|
| committer | Eli Collins <elic@assurancetechnologies.com> | 2020-10-05 21:14:03 -0400 |
| commit | a2809fd98ed58eb006d204b05cc1519bdf1b12de (patch) | |
| tree | a6e47b8f2ddecf8a01aded663a151dacbef70b7a /docs/lib | |
| parent | 0b6c5bdc88ace23e7f609ef9ef72da92495dddab (diff) | |
| download | passlib-a2809fd98ed58eb006d204b05cc1519bdf1b12de.tar.gz | |
passlib.handlers: cases where crypt() returns malformed hash
now return a single unified InternalBackendError() class,
instead of AssertionError.
This change has a couple of parts:
* assert statements replaced with permanent checks,
since crypt() is unpredictable enough that we need to have this always on,
even if production runs code in "-O2" mode.
* added debug_only_repr() helper which allows including sensitive stuff
like salts & hash digests within error tracebacks -- will only do so
when global flag is enabled; and that's currently only set by unittest suite.
* added new InternalBackendError() exception class (a RuntimeError subclass);
which is raised instead of an AssertionError.
Diffstat (limited to 'docs/lib')
| -rw-r--r-- | docs/lib/passlib.exc.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/lib/passlib.exc.rst b/docs/lib/passlib.exc.rst index f6e67ee..90565c8 100644 --- a/docs/lib/passlib.exc.rst +++ b/docs/lib/passlib.exc.rst @@ -12,6 +12,8 @@ Exceptions ========== .. autoexception:: MissingBackendError +.. autoexception:: InternalBackendError + .. index:: pair: environmental variable; PASSLIB_MAX_PASSWORD_SIZE |
