mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 12:59:46 +00:00
Retry authentication for auth keys up to five times by default
This commit is contained in:
@@ -46,9 +46,15 @@ class BrokenAuthKeyError(Exception):
|
||||
)
|
||||
|
||||
|
||||
class CdnFileTamperedError(Exception):
|
||||
class SecurityError(Exception):
|
||||
def __init__(self, *args):
|
||||
if not args:
|
||||
args = ['A security check failed.']
|
||||
super().__init__(self, *args)
|
||||
|
||||
|
||||
class CdnFileTamperedError(SecurityError):
|
||||
def __init__(self):
|
||||
super().__init__(
|
||||
self,
|
||||
'The CDN file has been altered and its download cancelled.'
|
||||
)
|
||||
|
Reference in New Issue
Block a user