X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Focpp-server%2Fserver.py;h=ea02342b9ddc5214bf2cc42b3799a6e883028f47;hb=4e5c91aef023b214716aeb6699edebd282cceeb9;hp=5738c7e33ce778fcf401c1bdb7ac501f9944c3d1;hpb=299eb3fafb21481e38e963ff6080d0822ae6a3ae;p=e-mobility-charging-stations-simulator.git 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)