Raise ImportError when missing dependency for call

master
pictuga 2014-06-22 02:04:14 +02:00
parent 9f51448160
commit 3ca5dbaf31
1 changed files with 1 additions and 1 deletions

View File

@ -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()])