Exception.message is deprecated.  For this you should use OSError's strerror attribute.  Sorry.  :-(