You can use
try:
your code
except ExceptionName:
except:
rest of errors
Run
- How to detect EADDRINUSE from an OSError exception adnan
- Re: How to detect EADDRINUSE from an OSError exception kidandcat
