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
|
errors = parser.simplify(link).errors
|
||||||
|
|
||||||
if not response:
|
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
|
||||||
|
|
||||||
return response.get('content')
|
return response.get('content')
|
||||||
|
|
||||||
def get_new_items(self, response):
|
def get_new_items(self, response):
|
||||||
import feedparser
|
import feedparser
|
||||||
engine = create_engine('sqlite:///{}'.format(self.dbfile),
|
engine = create_engine('sqlite:///{}'.format(self.dbfile), connect_args={'check_same_thread': False})
|
||||||
connect_args={'check_same_thread': False})
|
|
||||||
|
|
||||||
Base.metadata.create_all(engine)
|
Base.metadata.create_all(engine)
|
||||||
Session.configure(bind=engine)
|
Session.configure(bind=engine)
|
||||||
|
|
Loading…
Reference in a new issue