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