From 3ca5dbaf31108216391270c68ef96abada5cef52 Mon Sep 17 00:00:00 2001 From: pictuga Date: Sun, 22 Jun 2014 02:04:14 +0200 Subject: [PATCH] Raise ImportError when missing dependency for call --- morss/feeds.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss/feeds.py b/morss/feeds.py index 093b5ed..ba06240 100644 --- a/morss/feeds.py +++ b/morss/feeds.py @@ -378,7 +378,7 @@ class FeedParser(FeedBase): def tohtml(self): if DictLoader is None: - log('dep wheezy.template needed') + raise ImportError('dep wheezy.template needed') loader = DictLoader({'reader': open('reader.html.template').read()}) engine = Engine(loader=loader, extensions=[CoreExtension()])