Skip to content

Commit

Permalink
Merge pull request #664 from shauneccles/fix_devices_api
Browse files Browse the repository at this point in the history
Fix error handling in DevicesEndpoint
  • Loading branch information
shauneccles committed Jan 29, 2024
2 parents 999d1e4 + 4792fcf commit a7367d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ledfx/api/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ async def post(self, request: web.Request) -> web.Response:
except ValueError as msg:
error_message = f"Error creating device: {msg}"
_LOGGER.warning(error_message)
return await self.internal_error("error", error_message)
return await self.internal_error(error_message)

response = {
"status": "success",
Expand Down

0 comments on commit a7367d3

Please sign in to comment.