Properly distinguish JSON parse errors from empty values.

This commit is contained in:
Max Goodman
2013-07-17 15:51:41 -07:00
parent e195ee0706
commit e994fa6a8a

View File

@@ -2265,7 +2265,7 @@ class VValidatedJSON(VJSON):
def run(self, json_str):
data = VJSON.run(self, json_str)
if not data:
if self.has_errors:
return
# Note: this relies on the fact that all validator errors are dumped