diff options
author | Dennis Eriksen <d@ennis.no> | 2023-02-01 20:59:42 +0100 |
---|---|---|
committer | Dennis Eriksen <d@ennis.no> | 2023-02-01 20:59:42 +0100 |
commit | 7c403ecc8b6bd31f447eb91d73d95055489fbac4 (patch) | |
tree | f70a96871178c0d78be505cc71f090e4e91857ea /scripts/tibber_consumption.py | |
parent | moving and renaming/breaking everything (diff) | |
download | energyscripts-7c403ecc8b6bd31f447eb91d73d95055489fbac4.tar.gz |
fixing some lintingthings
Diffstat (limited to 'scripts/tibber_consumption.py')
-rw-r--r-- | scripts/tibber_consumption.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/tibber_consumption.py b/scripts/tibber_consumption.py index a411562..fa5169e 100644 --- a/scripts/tibber_consumption.py +++ b/scripts/tibber_consumption.py @@ -51,13 +51,13 @@ try: } } }"""} - response = requests.post(url, headers=hdr, json=body) + response = requests.post(url, headers=hdr, json=body, timeout=10) if response.status_code != 200: print(response.status_code) print("Oh shit") response.raise_for_status() -except Exception as e: +except requests.exceptions.RequestException as e: print("oh lol") sys.exit(e) |