diff --git a/itchat/components/login.py b/itchat/components/login.py index c1fb0391..c4e04ecf 100644 --- a/itchat/components/login.py +++ b/itchat/components/login.py @@ -59,8 +59,9 @@ def login(self, enableCmdQR=False, picDir=None, qrCallback=None, if isLoggedIn is not None: logger.info('Please press confirm on your phone.') isLoggedIn = None - elif status != '408': + elif status in ['408', '400']: break + time.sleep(1) if isLoggedIn: break elif self.isLogging: