adafruit / Adafruit_CircuitPython_HTTPServer

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

Preserve the real error if accept failed. #82

Closed jepler closed 9 months ago

jepler commented 9 months ago

Otherwise, the exception would be about the variable 'conn' never being assigned a value.

This scenario came up when there was an internal bug in circuitpython sockets that made accept fail; however, it might be the case that accept can "normally" fail, e.g., if all sockets are exhausted.