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

SourceForge.net noreply at sourceforge.net
Fri Sep 5 22:44:36 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.

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

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