lint fixes
This commit is contained in:
parent
5ca0c83a07
commit
03a758deca
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue