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:
norohind committed 2022-02-21 00:31:46 +03:00
1 parent d50df50ca1
commit b6392f8d20
8 files changed
+192 -35

No files matched your search

+9 -1
View File
@@ -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