Skip to content

Commit

Permalink
Adjust error messaging. Add SystemExit.
Browse files Browse the repository at this point in the history
  • Loading branch information
jshcodes committed May 30, 2024
1 parent e07698b commit 0df26b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions samples/sensor_download/download_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ def create_constants():
)

if sensors["status_code"] == 401:
print("authentification failed, status_code={}".format(
sensors["status_code"]))
print("sensors:{}".format(sensors))
raise SystemExit("Authentication failure (STATUS CODE {})".format(sensors["status_code"]))


elif CMD in "list":
# List sensors
data = []
Expand Down

0 comments on commit 0df26b9

Please sign in to comment.