mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-03 21:24:35 +03:00
parent
396ec908dd
commit
c248a102dc
|
@ -35,13 +35,12 @@ def generate_errors(errors, f):
|
|||
.format(error.capture_name))
|
||||
|
||||
f.write('super(Exception, self).__init__('
|
||||
'{} + self._fmt_request(request)'
|
||||
.format(repr(error.description)))
|
||||
'{}'.format(repr(error.description)))
|
||||
|
||||
if error.has_captures:
|
||||
f.write('.format(self.{})'.format(error.capture_name))
|
||||
|
||||
f.write(')\n')
|
||||
f.write(' + self._fmt_request(request))\n')
|
||||
|
||||
# Create the actual {CODE: ErrorClassName} dict once classes are defined
|
||||
f.write('\n\nrpc_errors_dict = {\n')
|
||||
|
|
Loading…
Reference in New Issue
Block a user