URLError errno and strerror not set

1

1x7y2z9

python 2.5.2

errno, strerror and message do not appear to be set in the following
two cases (at least).
Is this to be expected? (as an aside, arg[0] is set)

# case 1
print exception, exception.errno, exception.strerror, exception.message == ''
<urlopen error (111, 'Connection refused')> None None True

# case 2
print exception, exception.errno, exception.strerror, exception.message == ''
<urlopen error timed out> None None True

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,480
Members
44,900
Latest member
Nell636132

Latest Threads

Top