Improve fetch
This commit is contained in:
parent
0c7a19749d
commit
04da8725ed
4 changed files with 12 additions and 5 deletions
|
@ -85,6 +85,8 @@ async def get_lookup(
|
|||
error = ap.FetchErrorTypeEnum.TIMEOUT
|
||||
except (ap.ObjectNotFoundError, ap.ObjectIsGoneError):
|
||||
error = ap.FetchErrorTypeEnum.NOT_FOUND
|
||||
except (ap.ObjectUnavailableError):
|
||||
error = ap.FetchErrorTypeEnum.UNAUHTORIZED
|
||||
except Exception:
|
||||
logger.exception(f"Failed to lookup {query}")
|
||||
error = ap.FetchErrorTypeEnum.INTERNAL_ERROR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue