From 98c57be751fe18fec6d05152965f53ed9ade0872 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Chaves?= Date: Tue, 31 Mar 2020 16:14:50 +0200 Subject: Remove asserts (#904) --- src/OpenSSL/crypto.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/OpenSSL/crypto.py') diff --git a/src/OpenSSL/crypto.py b/src/OpenSSL/crypto.py index e2956ae..30dd478 100644 --- a/src/OpenSSL/crypto.py +++ b/src/OpenSSL/crypto.py @@ -1819,7 +1819,7 @@ def dump_certificate(type, cert): "type argument must be FILETYPE_PEM, FILETYPE_ASN1, or " "FILETYPE_TEXT") - assert result_code == 1 + _openssl_assert(result_code == 1) return _bio_to_string(bio) @@ -2893,7 +2893,7 @@ def dump_crl(type, crl): "type argument must be FILETYPE_PEM, FILETYPE_ASN1, or " "FILETYPE_TEXT") - assert ret == 1 + _openssl_assert(ret == 1) return _bio_to_string(bio) -- cgit v1.2.1