Skip to content

Commit

Permalink
use class name in OdinDataAdapter error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jsouter committed Oct 14, 2024
1 parent ce43bf4 commit 23af098
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/src/odin_data/control/odin_data_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def get(self, path, request):
# logging.error("{}".format(response))
except ParameterTreeError as param_error:
response = {
"response": "OdinDataAdapter GET error: {}".format(param_error)
"response": f"{type(self).__name__} GET error: {param_error}"
}
status_code = 400

Expand All @@ -110,7 +110,7 @@ def put(self, path, request): # pylint: disable=W0613
self._controller.put(path, json_decode(request.body))
except ParameterTreeError as param_error:
response = {
"response": "OdinDataAdapter PUT error: {}".format(param_error)
"response": f"{type(self).__name__} PUT error: {param_error}"
}
status_code = 400

Expand Down

0 comments on commit 23af098

Please sign in to comment.