Skip to content

Commit

Permalink
Raise exception on error
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Jun 25, 2015
1 parent 07c4df7 commit 1478309
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion news/management/commands/import_rss_news.py
Expand Up @@ -103,6 +103,6 @@ def handle(self, *args, **options):
data = handle.read()
parsed = feedparser.parse(data)
if parsed.bozo == 1:
self.stderr.write(parsed.bozo_exception)
raise CommandError(parsed.bozo_exception)
else:
self.process_feed(parsed)

0 comments on commit 1478309

Please sign in to comment.