database: fix decode exception handler
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
65946ef857
commit
4be8e2e72f
|
@ -689,8 +689,9 @@ class MoonrakerDatabase:
|
||||||
decode_func = RECORD_DECODE_FUNCS[fmt]
|
decode_func = RECORD_DECODE_FUNCS[fmt]
|
||||||
return decode_func(bvalue)
|
return decode_func(bvalue)
|
||||||
except Exception:
|
except Exception:
|
||||||
|
val = bytes(bvalue).decode()
|
||||||
raise self.server.error(
|
raise self.server.error(
|
||||||
f"Error decoding value {bvalue.decode()}, format: {chr(fmt)}")
|
f"Error decoding value {val}, format: {chr(fmt)}")
|
||||||
|
|
||||||
async def _handle_list_request(self,
|
async def _handle_list_request(self,
|
||||||
web_request: WebRequest
|
web_request: WebRequest
|
||||||
|
|
Loading…
Reference in New Issue