Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

catch Permission denied to prevent json exception #43

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

PhilippLemke
Copy link
Contributor

Catch "Invalid automation secret" to avoid the following exception:

in make_request
body_dict = json.loads(body)
File "/usr/lib/python3.8/json/init.py", line 357, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant