Skip to content

Commit

Permalink
Initialize logging when run as main script. Fixes "no handler found f…
Browse files Browse the repository at this point in the history
…or tldextract" message.
  • Loading branch information
john-kurkowski committed Oct 10, 2013
1 parent 2138be1 commit e73f2bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tldextract/tldextract.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,8 @@ def main():
"""docstring for main"""
import argparse

logging.basicConfig()

distribution = pkg_resources.get_distribution('tldextract')

parser = argparse.ArgumentParser(
Expand Down

0 comments on commit e73f2bf

Please sign in to comment.