From 03a758decaec8cc014ed695b83d4011c8da2ab08 Mon Sep 17 00:00:00 2001 From: sayali Date: Wed, 2 Dec 2020 18:12:19 -0800 Subject: [PATCH] lint fixes --- lemur/certificates/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lemur/certificates/views.py b/lemur/certificates/views.py index c72702fe..56d0a9c8 100644 --- a/lemur/certificates/views.py +++ b/lemur/certificates/views.py @@ -1473,11 +1473,12 @@ class CertificateRevoke(AuthenticatedResource): return dict(message=f"Certificate (id:{cert.id}) is revoked - {error_message}"), 400 return dict(id=cert.id) except NotImplementedError as ne: - return dict(message=f"Revoke is not implemented for issuer of this certificate"), 400 + return dict(message="Revoke is not implemented for issuer of this certificate"), 400 except Exception as e: sentry.captureException() return dict(message=f"Failed to revoke: {str(e)}"), 400 + api.add_resource( CertificateRevoke, "/certificates//revoke",