diff --git a/Makefile b/Makefile index b7ba31e0b..b9776c4e0 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,7 @@ init: npm install flakes: - flake8 isso/ --count --max-line-length=127 --show-source --statistics + flake8 isso/ contrib/ --count --max-line-length=127 --show-source --statistics # Note: It doesn't make sense to split up configs by output file with # webpack, just run everything at once diff --git a/contrib/import_blogger.py b/contrib/import_blogger.py index e25af29e4..1832d0666 100755 --- a/contrib/import_blogger.py +++ b/contrib/import_blogger.py @@ -23,9 +23,16 @@ """ import json - -import feedparser import time + +try: + import feedparser +except ImportError: + print("Error: Package feedparser not installed! You can install it via " + "'pip install feedparser' inside your virtualenv.") + import sys + sys.exit(1) + from urllib.parse import urlparse