commit ec683b9a48739c062777df51badb61361bb12ad3
parent a149fe5d63a277c85a956e9e36734665a0b9f10c
Author: archiveanon <>
Date: Thu, 1 Feb 2024 00:54:03 +0000
Add 'noServer' error
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/gofile/api.py b/src/gofile/api.py
@@ -46,9 +46,12 @@ class GofileStatus(enum.Enum):
# as the API notes, guest tokens cannot access the API methods marked as premium
ERROR_NOT_PREMIUM = "error-notPremium"
+ # no server is available to process this request
+ ERROR_NO_SERVER = "noServer"
+
class GofileServerResult(msgspec.Struct):
- server: str
+ server: Optional[str] = None
class GofileUploadResult(msgspec.Struct):