From f155c0725ba1586fd81ad784803c20735c9b4928 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Mon, 25 Apr 2011 12:39:09 -0400 Subject: [PATCH] Prevented undefined variable use --- apps/ocr/tasks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/ocr/tasks.py b/apps/ocr/tasks.py index de87212ddb..eb79234acc 100644 --- a/apps/ocr/tasks.py +++ b/apps/ocr/tasks.py @@ -41,7 +41,8 @@ def task_process_queue_document(queue_document_id): def reset_orphans(): i = inspect().active() active_tasks = [] - + orphans = [] + if i: for host, instances in i.items(): for instance in instances: