mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 21:10:29 +00:00
Fix syntax of exception throwing here and there
This commit is contained in:

committed by
Lonami

parent
7f787affc6
commit
0ef32a7d78
@@ -173,7 +173,7 @@ class TelegramClient:
|
||||
|
||||
except InvalidDCError as error:
|
||||
if throw_invalid_dc:
|
||||
raise error
|
||||
raise
|
||||
|
||||
self.reconnect_to_dc(error.new_dc)
|
||||
return self.invoke(request, timeout=timeout, throw_invalid_dc=True)
|
||||
@@ -216,7 +216,7 @@ class TelegramClient:
|
||||
print(error)
|
||||
return False
|
||||
else:
|
||||
raise error
|
||||
raise
|
||||
elif password:
|
||||
salt = self.invoke(GetPasswordRequest()).current_salt
|
||||
result = self.invoke(
|
||||
|
Reference in New Issue
Block a user