Check to see if SO_REUSEPORT is usable and not just defined. by sethmlarson · Pull Request #418 · python/asyncio (original) (raw)

I am sorry, but to me this fix actually causes more problems than it fixes.

Yes, the old error message is rather cryptic and the new exception message is way better, but changing the exception type seems wrong to me. Yes, ValueError might fit better, but changing the type will cause a lot of problems.

My recommendation would be to catch the old OSError and then raise a new OSError with the improved error message.