mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-04 22:34:52 +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
|
MESSAGE = None
|
||||||
|
|
||||||
def __init__(self, x: int or RpcError = None, query_type: type = 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:
|
try:
|
||||||
self.x = int(x)
|
self.x = int(x)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue