mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
[dashboard] feat: REST API (#8694)
This commit is contained in:
committed by
GitHub
parent
1719c4b5a3
commit
2f2ac00a09
@@ -536,7 +536,8 @@ def validate_json(obj):
|
||||
if obj:
|
||||
try:
|
||||
json.loads(obj)
|
||||
except Exception:
|
||||
except Exception as e:
|
||||
logging.error(f"JSON is not valid {e}")
|
||||
raise SupersetException("JSON is not valid")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user