[issue34307] NullHandler init refusing arguments
Romuald Brunet
report at bugs.python.org
Wed Aug 1 09:34:16 EDT 2018
New submission from Romuald Brunet <romuald.brunet at gmail.com>:
Context:
I'm using a custom Handler that relies on a third-party library that may not be present
try:
from acme.logging import CustomHandler as BaseHandler
except ImportError:
import logging.NullHandler as BaseHandler
class MoreCustomHandler(BaseHandler):
def handle(self):
self.stuff()
The logging configuration has some arguments for the CustomHandler. The problem is that the NullHandler does not accept them.
I expected it to be a "dummy" handler that might accept any argument
----------
components: Library (Lib)
messages: 322861
nosy: Romuald
priority: normal
severity: normal
status: open
title: NullHandler init refusing arguments
type: behavior
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34307>
_______________________________________
More information about the Python-bugs-list
mailing list