Skip to content

Commit

Permalink
[Task 10690] correct min check length to also allow for empty list
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Bierbrauer committed Feb 16, 2018
1 parent bbddca0 commit cf70d9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spire/context.py
Expand Up @@ -29,7 +29,7 @@ def __call__(self, environ, context):

for name, value in environ.iteritems():
if name[:length] == prefix:
if value != None and len(value)>2 and value[0] == '[':
if value != None and len(value)>1 and value[0] == '[':
value = ast.literal_eval(value)
context[name[length:].lower().replace('_', '-')] = value

Expand Down

0 comments on commit cf70d9b

Please sign in to comment.