Added missing string format parameter

This commit is contained in:
Fabio Manganiello 2020-03-24 09:11:07 +01:00
parent 83a3f127cc
commit 4ece49bfe7

View file

@ -79,15 +79,14 @@ class RssUpdates(HttpRequest):
errors = parser.simplify(link).errors
if not response:
self.logger.warning('Mercury parser error: '.format(errors or '[unknown error]'))
self.logger.warning('Mercury parser error: {}'.format(errors or '[unknown error]'))
return
return response.get('content')
def get_new_items(self, response):
import feedparser
engine = create_engine('sqlite:///{}'.format(self.dbfile),
connect_args={'check_same_thread': False})
engine = create_engine('sqlite:///{}'.format(self.dbfile), connect_args={'check_same_thread': False})
Base.metadata.create_all(engine)
Session.configure(bind=engine)