adafruit / Adafruit_CircuitPython_HTTPServer

Simple HTTP Server for CircuitPython
MIT License
46 stars 30 forks source link

Fix for CPython "Adress already in use" error #79

Closed michalpokusa closed 10 months ago

michalpokusa commented 10 months ago

Continuation of #78

🪛Fixes:

MZachmann commented 9 months ago

Unless I'm missing something, when not in CPython this is throwing an exception. I just added an except: pass to deal with it but at least for me in CircuitPython (9.2 for esp32) it's failing.

michalpokusa commented 9 months ago

Unless I'm missing something, when not in CPython this is throwing an exception. I just added an except: pass to deal with it but at least for me in CircuitPython (9.2 for esp32) it's failing.

You are right, I don't kinow how I managed to miss that, probably removed the except just before commiting. Already working on the PR with fix.

Thank for pointing that out!