handle_respone can also handle the no data response

This commit is contained in:
Hossein Shafagh 2020-10-22 17:33:39 -07:00
parent cf87e178c8
commit 9ce0010bf1

View File

@ -216,7 +216,7 @@ class EntrustIssuerPlugin(IssuerPlugin):
deactivate_url = f"{base_url}/certificates/{certificate.external_id}/deactivations"
response = self.session.post(deactivate_url)
metrics.send("entrust_deactivate_certificate", "counter", 1)
return response.status_code
return handle_response(response)
@staticmethod
def create_authority(options):