mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
@@ -78,13 +78,13 @@ class MultiError(Exception):
|
||||
raise ValueError(
|
||||
'Need result, exception and request for each error')
|
||||
for e, req in zip(exceptions, requests):
|
||||
if not isinstance(e, BaseException):
|
||||
if not isinstance(e, BaseException) and e is not None:
|
||||
raise TypeError(
|
||||
'Expected and exception object, not %r' % e
|
||||
"Expected an exception object, not '%r'" % e
|
||||
)
|
||||
if not isinstance(req, TLRequest):
|
||||
raise TypeError(
|
||||
'Expected TLRequest object, not %r' % req
|
||||
"Expected TLRequest object, not '%r'" % req
|
||||
)
|
||||
|
||||
if len(exceptions) == 1:
|
||||
|
Reference in New Issue
Block a user