I don't think you need this anymore, RETRY_EXCEPTIONS only includes Errno descendants now.