Skip to content

Commit

Permalink
contrib: import_blogger: Warn on missing feedparser
Browse files Browse the repository at this point in the history
  • Loading branch information
ix5 committed Mar 21, 2022
1 parent d7c8707 commit 1724b89
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions contrib/import_blogger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 1724b89

Please sign in to comment.