import string class CannotCastToSteamID(Exception): pass class NotLoadProfile(Exception): pass class NeedDiscordAuthOfSteam(Exception): pass class LowPermition(Exception): pass class NotFoundPlayerOnServer(Exception): pass class UnknownBackendResponse(Exception): def __init__(self, request_url: string = None, response = None, *args: object) -> None: super().__init__(*args) self.request_url = request_url self.response = response print(self.__str__()) @property def status_code(self): try: return self.response.status except: return 0 def __str__(self) -> str: try: return f"{self.request_url}, response code: {self.status_code}" except: return "Cannot str exception" class AdminLowPermition(Exception): pass