Add error handling for admin lookups
This commit is contained in:
parent
24f3f94056
commit
c07d17ba9b
6 changed files with 45 additions and 13 deletions
|
@ -55,6 +55,12 @@ class ObjectNotFoundError(Exception):
|
|||
pass
|
||||
|
||||
|
||||
class FetchErrorTypeEnum(str, enum.Enum):
|
||||
TIMEOUT = "TIMEOUT"
|
||||
NOT_FOUND = "NOT_FOUND"
|
||||
INTERNAL_ERROR = "INTERNAL_ERROR"
|
||||
|
||||
|
||||
class VisibilityEnum(str, enum.Enum):
|
||||
PUBLIC = "public"
|
||||
UNLISTED = "unlisted"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue