diff --git a/oml/item/scan.py b/oml/item/scan.py index fd5a7e5..3a0de75 100644 --- a/oml/item/scan.py +++ b/oml/item/scan.py @@ -215,6 +215,8 @@ def run_import(options=None): if state.activity.get('cancel'): state.activity = {} return + if not state.tasks.connected: + return with db.session(): if listname and listitems: l = List.get(settings.USER_ID, listname)