diff --git a/telethon/client/auth.py b/telethon/client/auth.py index 3222a0c8..03d31e59 100644 --- a/telethon/client/auth.py +++ b/telethon/client/auth.py @@ -205,7 +205,7 @@ class AuthMethods(MessageParseMethods, UserMethods): print('Invalid password. Please try again', file=sys.stderr) else: - raise errors.PasswordHashInvalidError() + raise errors.PasswordHashInvalidError(None) else: me = await self.sign_in(phone=phone, password=password)