New submission from Jason R. Coombs <jar...@jaraco.com>:

On Python 3.8.0:

$ python -c "import logging.handlers, socket; handler = 
logging.handlers.SysLogHandler(facility=logging.handlers.SysLogHandler.LOG_LOCAL7,
 address='/dev/log', socktype=socket.SOCK_RAW)"                                 
                    
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/logging/__init__.py",
 line 2112, in shutdown
    h.close()
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/logging/handlers.py",
 line 892, in close
    self.socket.close()
AttributeError: 'SysLogHandler' object has no attribute 'socket'

Probably that shouldn't happen.

----------
messages: 356475
nosy: jaraco
priority: normal
severity: normal
status: open
title: SysLogHandler crash atexit

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38780>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to