Skip to content

Commit

Permalink
remove message
Browse files Browse the repository at this point in the history
  • Loading branch information
hughhhh committed Dec 5, 2022
1 parent 7ae2484 commit efa701f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset/charts/data/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def get_data(self, pk: int) -> Response:
command = ChartDataCommand(query_context)
command.validate()
except DatasourceNotFound as error:
return self.response_404(message=error)
return self.response_404()
except QueryObjectValidationError as error:
return self.response_400(message=error.message)
except ValidationError as error:
Expand Down Expand Up @@ -233,7 +233,7 @@ def data(self) -> Response:
command = ChartDataCommand(query_context)
command.validate()
except DatasourceNotFound as error:
return self.response_404(message=error)
return self.response_404()
except QueryObjectValidationError as error:
return self.response_400(message=error.message)
except ValidationError as error:
Expand Down

0 comments on commit efa701f

Please sign in to comment.