From: Sekiya Date: Thu, 27 Jun 2024 08:51:03 +0000 (+0900) Subject: fix: issue 39 X-Git-Tag: v1.3.7~17^2~5 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=4e5c91aef023b214716aeb6699edebd282cceeb9;p=e-mobility-charging-stations-simulator.git fix: issue 39 --- diff --git a/tests/ocpp-server/server.py b/tests/ocpp-server/server.py index 5738c7e3..ea02342b 100644 --- a/tests/ocpp-server/server.py +++ b/tests/ocpp-server/server.py @@ -138,10 +138,8 @@ async def send_ocpp_command(cp, command_name, delay=None, period=None): case Action.GetBaseReport: logging.info("%s Send:", Action.GetBaseReport) await cp.send_get_base_report() - case _: - logging.warning(f"Unsupported command {command_name}") except Exception: - logging.exception(f"Failure while processing command {command_name}") + logging.exception(f"Not supported or Failure while processing command {command_name}") if delay: await asyncio.sleep(delay)