Added missing string format parameter
This commit is contained in:
parent
83a3f127cc
commit
4ece49bfe7
1 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue