X-Git-Url: https://git.sven.stormbind.net/?p=sven%2Fscripts.git;a=blobdiff_plain;f=home%2Fportalmonitor.py;fp=home%2Fportalmonitor.py;h=2264206090735e746dd2c0aabfb8fad028df3f2a;hp=12a088e1e6970c7baaca183993bb02a6af82c609;hb=79a5dcdef2ef3929f764413938f9067a74535415;hpb=5d454e4a51fc630855d24f868717e51cf2c66857 diff --git a/home/portalmonitor.py b/home/portalmonitor.py index 12a088e..2264206 100755 --- a/home/portalmonitor.py +++ b/home/portalmonitor.py @@ -46,10 +46,7 @@ def getCurrentPower(userName, password, stationId): 'pwd': password }, timeout=(10, 30)) - except requests.exceptions.RequestException as e: - raise SystemExit(e) - try: r = s.post( 'https://www.envertecportal.com/ApiStations/getStationInfo', data={ @@ -57,10 +54,7 @@ def getCurrentPower(userName, password, stationId): }, timeout=(10, 60)).json() power = r['Data']['Power'] - except requests.exceptions.RequestException as e: - raise SystemExit(e) - try: r = s.post('https://www.envertecportal.com/apiAccount/Logout', timeout=(10, 30)) except requests.exceptions.RequestException as e: