[Python-bugs-list] [ python-Bugs-792649 ] RESET_ERROR is not defined(logging module)

SourceForge.net noreply at sourceforge.net
Tue Sep 9 18:13:20 EDT 2003


Bugs item #792649, was opened at 2003-08-21 12:45
Message generated for change (Settings changed) made by rhettinger
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=792649&group_id=5470

Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: George Yoshida (quiver)
>Assigned to: Raymond Hettinger (rhettinger)
Summary: RESET_ERROR is not defined(logging module)

Initial Comment:
ConfigStreamHandler class(logging/config.py) has the 

following code in its handle method:



    except socket.error, e:

        if type(e.args) != types.TupleType:

            raise

        else:

            errcode = e.args[0]

            if errcode != RESET_ERROR:

                raise



However, RESET_ERROR is not defined.

So if the handle method catches socket.error, this will 

raise NameError.

----------------------------------------------------------------------

Comment By: Raymond Hettinger (rhettinger)
Date: 2003-09-08 20:59

Message:
Logged In: YES 
user_id=80475

Guido, do you know what Vinay intended here?



I'm guessing it is errno.ECONNRESET but am not sure which 

of the many reset error numbers he intended to catch and 

ignore.



I emailed him but have not gotten a reply.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=792649&group_id=5470



More information about the Python-bugs-list mailing list