Skip to content

raise error if we didn't get a 200 before trying to run json() - #17

Open
Fr3d wants to merge 1 commit into
camect:masterfrom
Fr3d:master
Open

raise error if we didn't get a 200 before trying to run json()#17
Fr3d wants to merge 1 commit into
camect:masterfrom
Fr3d:master

Conversation

@Fr3d

@Fr3d Fr3d commented Sep 29, 2022

Copy link
Copy Markdown

fixes errors like this:
File "/usr/local/lib/python3.9/site-packages/camect/init.py", line 144, in list_cameras
return json["camera"]
KeyError: 'camera'

also bump the version number slightly

…t likely won't be a valid json response

fixes errors like this:
File "/usr/local/lib/python3.9/site-packages/camect/__init__.py", line 144, in list_cameras
    return json["camera"]
KeyError: 'camera'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant