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

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