From 4d83cc1f35b1bb415432ad32787b3f62c7019099 Mon Sep 17 00:00:00 2001 From: Joerg Kummer Date: Sun, 22 Oct 2023 23:38:41 +0200 Subject: [PATCH] test pylint WF --- ImportSchweizmobil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ImportSchweizmobil.py b/ImportSchweizmobil.py index 2fa57e2..e814c02 100644 --- a/ImportSchweizmobil.py +++ b/ImportSchweizmobil.py @@ -86,13 +86,13 @@ def Import_Schweizmobil(): try: #login response = session.post(pre+'4/login',data=creds) + rst=response.status_code ErrC=response.json()['loginErrorCode'] - if (rst!=200 or ErrC!=200): raise Exception (f"Authentication failed; ({rst}/{ErrC})") - # fetch the list of tracks + # fetch the list of tracks response = session.get(pre+'5/tracks') if (debug>1): print ("Tracks API call ",response.status_code)