Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contrib: import_blogger: Warn on missing feedparser, run flake8 in contrib/ as well #818

Merged
merged 2 commits into from
Mar 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
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