diff --git a/mw40v.py b/mw40v.py index a7c462c..dd30f0a 100644 --- a/mw40v.py +++ b/mw40v.py @@ -29,7 +29,7 @@ class Mw40V: ) if 'error' in r.json(): - if r.json()['error']['message'] == 'Authentication Failure': + if r.json()['error']['message'] in ['Authentication Failure', 'Request need login']: self.login_token = None self.request(self, method, params, id) else: