Closed jdeltoft closed 7 years ago
In src/setting.py, a user reported a failure for the import of JSONDecodeError:
https://forum.micropython.org/viewtopic.php?f=16&t=2245&p=20643#p20643
I'm not all that familiar yet with which exceptions to catch, but perhaps the issue here is python 2 versus 3? See the following article.
https://www.peterbe.com/plog/jsondecodeerror-in-requests.get.json-python-2-and-3
From here it looks like ValueError may be ok to catch in place of JSONDecodeError. Let me know what you think.
https://www.tutorialspoint.com/python/standard_exceptions.htm
My fault. Just realized your instructions mentioned that python 3 is required. ;-)
Closing this.
In src/setting.py, a user reported a failure for the import of JSONDecodeError:
https://forum.micropython.org/viewtopic.php?f=16&t=2245&p=20643#p20643
I'm not all that familiar yet with which exceptions to catch, but perhaps the issue here is python 2 versus 3? See the following article.
https://www.peterbe.com/plog/jsondecodeerror-in-requests.get.json-python-2-and-3
From here it looks like ValueError may be ok to catch in place of JSONDecodeError. Let me know what you think.
https://www.tutorialspoint.com/python/standard_exceptions.htm