diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2017-10-18 21:47:34 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2017-10-30 19:42:22 +0100 |
commit | a6ccf8b393f16d40a2b0afa7d226a59d2a1a15f0 (patch) | |
tree | f5c36266d54cef825f7f860acfb27f73ff587030 /M2Crypto/SMIME.py | |
parent | 784471265e71ccf5f7dd3b3dec749cf12198e773 (diff) | |
download | m2crypto-a6ccf8b393f16d40a2b0afa7d226a59d2a1a15f0.tar.gz |
It is unnecessary for SMIME.smime_load_pkcs7 to raise SMIME_Error.
underlying C function does it on its own.
Diffstat (limited to 'M2Crypto/SMIME.py')
-rw-r--r-- | M2Crypto/SMIME.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/M2Crypto/SMIME.py b/M2Crypto/SMIME.py index 608c423..a0ca232 100644 --- a/M2Crypto/SMIME.py +++ b/M2Crypto/SMIME.py @@ -127,8 +127,6 @@ def smime_load_pkcs7(p7file): finally: m2.bio_free(bio) - if p7_ptr is None: - raise SMIME_Error(Err.get_error()) if bio_ptr is None: return PKCS7(p7_ptr, 1), None else: |