mirror of
https://github.com/dh1tw/pyhamtools.git
synced 2025-12-31 13:49:59 +01:00
cluglog retuns now 403 error code when API key is missing
This commit is contained in:
parent
f7d4cd2527
commit
4ddd4a2466
|
|
@ -1451,7 +1451,7 @@ class LookupLib(object):
|
|||
else:
|
||||
err_str = "HTTP Status Code: " + str(response.status_code) + " HTTP Response: " + str(response.text)
|
||||
self._logger.error(err_str)
|
||||
if error1 in response.text.strip() or error2 in response.text.strip():
|
||||
if response.status_code == 403:
|
||||
raise APIKeyMissingError
|
||||
else:
|
||||
raise LookupError(err_str)
|
||||
|
|
|
|||
Loading…
Reference in a new issue