Skip to content
Snippets Groups Projects
Commit 38511f08 authored by ale's avatar ale
Browse files

do not exit if unable to load markov data

parent ca5ee81e
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,11 @@ def run_frontend(port, solr_url, db_url, lastfm_api_key, album_art_dir,
svcs['album_images'] = AlbumImageRetriever(lastfm_api_key, album_art_dir)
svcs['mailer'] = Mailer(email_sender)
svcs['markov'] = MarkovModel()
try:
svcs['markov'].load(markov_data_file)
except IOError, e:
log.error('Could not read Markov data from %s: %s' % (
markov_data_file, str(e)))
http_server = WSGIServer(('0.0.0.0', port), app)
http_server.serve_forever()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment