BUG: fix JSONDecodeError
@@ -119,7 +119,7 @@ def vega(line, cell):
elif not YAML_AVAILABLE:
try:
spec = json.loads(cell)
- except JSONDecodeError:
+ except json.JSONDecodeError:
raise ValueError("%%vega: spec is not valid JSON. "
"Install pyyaml to parse spec as yaml")
else:
@@ -165,7 +165,7 @@ def vegalite(line, cell):
elif not YAML_AVAILABLE:
try:
spec = json.loads(cell)
- except JSONDecodeError:
+ except json.JSONDecodeError:
raise ValueError("%%vegalite: spec is not valid JSON. "
"Install pyyaml to parse spec as yaml")
else:
