URLError errno and strerror not set

Discussion in 'Python' started by 1x7y2z9, Jul 16, 2009.

  1. 1x7y2z9

    1x7y2z9 Guest

    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.
    1x7y2z9, Jul 16, 2009
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jaskaran Singh

    strerror equivalent JAVA

    Jaskaran Singh, Jun 17, 2004, in forum: Java
    Replies:
    3
    Views:
    785
  2. Fuzzyman

    Error Codes From a URLError

    Fuzzyman, Jul 23, 2004, in forum: Python
    Replies:
    2
    Views:
    381
    Fuzzyman
    Jul 24, 2004
  3. Wolfgang Meier

    std::strerror and UTF-8

    Wolfgang Meier, Jul 3, 2006, in forum: C++
    Replies:
    3
    Views:
    1,196
    Wolfgang Meier
    Jul 4, 2006
  4. viza

    &errno, sizeof errno

    viza, Sep 12, 2008, in forum: C Programming
    Replies:
    20
    Views:
    970
    Tim Rentsch
    Sep 14, 2008
  5. Glenn Linderman

    errno 22 instead of errno 2

    Glenn Linderman, Jan 28, 2009, in forum: Python
    Replies:
    0
    Views:
    350
    Glenn Linderman
    Jan 28, 2009
Loading...

Share This Page