BetaRavener / uPyLoader

File transfer and communication tool for MicroPython boards
MIT License
354 stars 77 forks source link

Linux user having issues with JSONDecodeError not importing #22

Closed jdeltoft closed 7 years ago

jdeltoft commented 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

jdeltoft commented 7 years ago

My fault. Just realized your instructions mentioned that python 3 is required. ;-)

Closing this.