better exception handling

This commit is contained in:
muellerr committed 2023-06-19 17:14:08 +02:00
1 parent 673af7f097
commit cfbff77da8
1 file changed
+2 -1
+2 -1
View File
@@ -35,7 +35,8 @@ def pus_factory_hook(
return
try:
tm_packet = PusTelemetry.unpack(packet, CdsShortTimestamp.empty())
except ValueError:
except ValueError as value_error:
_LOGGER.warning(f"{value_error}")
_LOGGER.warning("Could not generate PUS TM object from raw data")
_LOGGER.warning(f"Raw Packet: [{packet.hex(sep=',')}], REPR: {packet!r}")
return