From 5e46e7e14efe3914845d8e57123890e0469240a8 Mon Sep 17 00:00:00 2001 From: Gentile G Date: Fri, 20 Oct 2023 17:32:11 +0200 Subject: [PATCH] broading unlogging detection --- mw40v.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: