mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-01 05:04:51 +00:00
Merge branch 'master' into dispatcher
This commit is contained in:
commit
f57ff96ab3
1 changed files with 5 additions and 1 deletions
|
|
@ -33,7 +33,11 @@ class Error(Exception):
|
|||
MESSAGE = None
|
||||
|
||||
def __init__(self, x: int or RpcError = None, query_type: type = None):
|
||||
super().__init__("[{} {}]: {}".format(self.CODE, self.ID or self.NAME, self.MESSAGE.format(x=x)))
|
||||
super().__init__("[{} {}]: {}".format(
|
||||
self.CODE,
|
||||
self.ID or self.NAME,
|
||||
str(self) or self.MESSAGE.format(x=x)
|
||||
))
|
||||
|
||||
try:
|
||||
self.x = int(x)
|
||||
|
|
|
|||
Loading…
Reference in a new issue