get defaults to None

This commit is contained in:
j 2011-04-23 01:34:01 +02:00
commit d6bab8ddfa
7 changed files with 12 additions and 12 deletions

View file

@ -26,7 +26,7 @@ def parseCondition(condition):
if not k:
k = 'all'
v = condition['value']
op = condition.get('operator', None)
op = condition.get('operator')
if not op:
op = ''
if op.startswith('!'):