From 5347c2e61904d2912ece396803ddf0308ba45756 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 24 Jan 2015 16:00:24 +0530 Subject: [PATCH] dont fail if condition does not have a value --- pandora/edit/managers.py | 2 +- pandora/itemlist/managers.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/edit/managers.py b/pandora/edit/managers.py index cb6b9b784..d5d2635e0 100644 --- a/pandora/edit/managers.py +++ b/pandora/edit/managers.py @@ -16,7 +16,7 @@ def parseCondition(condition, user): }.get(k, k) if not k: k = 'name' - v = condition['value'] + v = condition.get('value', '') op = condition.get('operator') if not op: op = '=' diff --git a/pandora/itemlist/managers.py b/pandora/itemlist/managers.py index b37a91484..2f69dc025 100644 --- a/pandora/itemlist/managers.py +++ b/pandora/itemlist/managers.py @@ -16,7 +16,7 @@ def parseCondition(condition, user): }.get(k, k) if not k: k = 'name' - v = condition['value'] + v = condition.get('value', '') op = condition.get('operator') if not op: op = '='