Skip to content

Commit

Permalink
don't suppress import errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jantman committed Jan 8, 2022
1 parent 0ed2632 commit dba5680
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions bgw210-700_to_graphite.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,8 @@
import codecs
from hashlib import md5

try:
import requests
except ImportError:
sys.stderr.write(
"Error importing requests - 'pip install requests'\n"
)
raise SystemExit(1)

try:
from lxml import etree
except ImportError:
sys.stderr.write(
"Error importing lxml - 'pip install lxml'\n"
)
raise SystemExit(1)
import requests
from lxml import etree

FORMAT = "[%(asctime)s %(levelname)s] %(message)s"
logging.basicConfig(level=logging.WARNING, format=FORMAT)
Expand Down

0 comments on commit dba5680

Please sign in to comment.