Thanks to the PEP 3151, select.error (which is just an alias to OSError) has now an error attribute.
Attach a file by drag & drop or click to upload