diff options
-rw-r--r-- | cryptography/hazmat/bindings/openssl/backend.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cryptography/hazmat/bindings/openssl/backend.py b/cryptography/hazmat/bindings/openssl/backend.py index 0071da5d..99f11f45 100644 --- a/cryptography/hazmat/bindings/openssl/backend.py +++ b/cryptography/hazmat/bindings/openssl/backend.py @@ -207,7 +207,9 @@ class Backend(object): elif func == self.lib.EVP_F_EVP_DECRYPTFINAL_EX: if reason == self.lib.EVP_R_DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH: raise IncorrectPadding - assert False + raise SystemError( + "Unknown error code from OpenSSL, you should probably file a bug" + ) class GetCipherByName(object): |