lint fixes

This commit is contained in:
sayali 2020-12-02 18:12:19 -08:00
parent 5ca0c83a07
commit 03a758deca
1 changed files with 2 additions and 1 deletions

View File

@ -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/<int:certificate_id>/revoke",