Skip to content

Commit

Permalink
Merge pull request #3147 from jwalgran/jcw/handle-null-multichoice-value
Browse files Browse the repository at this point in the history
Handle null multichoice value
  • Loading branch information
jwalgran authored Jun 15, 2017
2 parents 92495b7 + c3a8683 commit 01a460b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions opentreemap/treemap/udf.py
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,8 @@ def _validate(val):
raise complaint(
'%(fieldname)s must be valid JSON',
fieldname=self.name)
if values is None:
return None
if isinstance(values, basestring):
# A single string is valid JSON. Wrap as a list for
# consistency
Expand Down

0 comments on commit 01a460b

Please sign in to comment.