Logging when GPT's Zero response != 200
This commit is contained in:
@@ -25,6 +25,7 @@ class GPTZero:
|
||||
}
|
||||
response = requests.post(self._GPT_ZERO_ENDPOINT, headers=self._header, json=data)
|
||||
if response.status_code != 200:
|
||||
self._logger.error(f'GPT\'s Zero Endpoint returned with {response.status_code}: {response.json()}')
|
||||
return None
|
||||
return self._parse_detection(response.json())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user