zhaoyongjie commented on code in PR #20882:
URL: https://github.com/apache/superset/pull/20882#discussion_r931196437


##########
superset/dashboards/api.py:
##########
@@ -383,8 +383,10 @@ def get_datasets(self, id_or_slug: str) -> Response:
                 self.dashboard_dataset_schema.dump(dataset) for dataset in 
datasets
             ]
             return self.response(200, result=result)
-        except TypeError:
-            return self.response_400(message=gettext("Dataset schema is 
invalid."))
+        except (TypeError, ValueError) as err:
+            return self.response_400(
+                message=gettext(f"Dataset schema is invalid, caused by: 
{str(err)}")

Review Comment:
   sorry, forgot again.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to