mirror of
https://github.com/norohind/FDEV-CAPI-Handler.git
synced 2026-10-29 01:26:02 +03:00
FID as main identifier, not nickname
Because user can don't have a game so no nickname, but his FDEV tokens still suits for not CAPI requests (i.e. squadrons api)
This commit is contained in:
8 files changed
+192
-35
No files matched your search
+9
-1
@@ -1,6 +1,14 @@
|
||||
class RefreshFail(Exception):
|
||||
class CAPIException(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class RefreshFail(CAPIException):
|
||||
def __init__(self, message: str, status: str, state: str):
|
||||
self.message = message
|
||||
self.status = status
|
||||
self.state = state
|
||||
super().__init__(str(self.message) + ' for ' + str(self.state))
|
||||
|
||||
|
||||
class NoFID(Exception):
|
||||
pass
|
||||
Reference in new issue
Block a user