From 1c2ef33353e4d5f12266cf3d84a48b60b37d5a5b Mon Sep 17 00:00:00 2001 From: j Date: Thu, 25 Feb 2016 13:09:10 +0530 Subject: [PATCH] info might be empty --- oml/library.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oml/library.py b/oml/library.py index 9e49c55..037f0c4 100644 --- a/oml/library.py +++ b/oml/library.py @@ -323,7 +323,7 @@ def sync_db(): first = False logger.debug('sync items') i.update(commit=False) - if i.info['mediastate'] == 'unavailable' and state.tasks: + if i.info.get('mediastate') == 'unavailable' and state.tasks: state.tasks.queue('getpreview', i.id) commit = True #logger.debug('sync:%s', i)