1. anatoly techtonik
  2. pycountry
  3. Issues
Issue #3 wontfix

Please add logging handler to pycountry.db.logger

Fabian Büchler
created an issue

There is no default logging handler assinged to pycountry.db.logger. This results in warning messages whenever importing pycountry.

To reproduce: {{{


$ pip install pycountry $ python

import pycountry No handlers could be found for logger "pycountry.db" }}}

Not very harmful, but a little annoying :)

Comments (4)

  1. Anonymous

    Any chance you would reconsider? The warning is extremely tedious and unnecessary. The docs you link to suggest adding a NullHandler in a library to suppress the warning. Cheers.

  2. Log in to comment