mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-29 00:38:11 -05:00
Properly distinguish JSON parse errors from empty values.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user