Spaces:
Runtime error
Runtime error
Download styleenv/lib/python3.11/site-packages/argon2/exceptions.py from otioss/Accent_App: direct link, hf CLI and curl.
- Browser
- Download file 1.1 kB
-
https://huggingface.co/spaces/otioss/Accent_App/resolve/main/styleenv/lib/python3.11/site-packages/argon2/exceptions.py
- Command line
-
hf download hf://spaces/otioss/Accent_App/styleenv/lib/python3.11/site-packages/argon2/exceptions.py
-
curl -L -o exceptions.py https://huggingface.co/spaces/otioss/Accent_App/resolve/main/styleenv/lib/python3.11/site-packages/argon2/exceptions.py
1.1 kB
| # SPDX-License-Identifier: MIT | |
| from __future__ import annotations | |
| class Argon2Error(Exception): | |
| """ | |
| Superclass of all argon2 exceptions. | |
| Never thrown directly. | |
| """ | |
| class VerificationError(Argon2Error): | |
| """ | |
| Verification failed. | |
| You can find the original error message from Argon2 in ``args[0]``. | |
| """ | |
| class VerifyMismatchError(VerificationError): | |
| """ | |
| The secret does not match the hash. | |
| Subclass of :exc:`argon2.exceptions.VerificationError`. | |
| .. versionadded:: 16.1.0 | |
| """ | |
| class HashingError(Argon2Error): | |
| """ | |
| Raised if hashing failed. | |
| You can find the original error message from Argon2 in ``args[0]``. | |
| """ | |
| class InvalidHashError(ValueError): | |
| """ | |
| Raised if the hash is invalid before passing it to Argon2. | |
| .. versionadded:: 23.1.0 | |
| As a replacement for :exc:`argon2.exceptions.InvalidHash`. | |
| """ | |
| InvalidHash = InvalidHashError | |
| """ | |
| Deprecated alias for :class:`InvalidHashError`. | |
| .. versionadded:: 18.2.0 | |
| .. deprecated:: 23.1.0 | |
| Use :exc:`argon2.exceptions.InvalidHashError` instead. | |
| """ | |