This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Romuald
Recipients Romuald
Date 2018-08-01.13:34:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1533130455.97.0.56676864532.issue34307@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2018-08-01 13:34:16Romualdsetrecipients: + Romuald
2018-08-01 13:34:15Romualdsetmessageid: <1533130455.97.0.56676864532.issue34307@psf.upfronthosting.co.za>
2018-08-01 13:34:15Romualdlinkissue34307 messages
2018-08-01 13:34:15Romualdcreate