fix: issue 39
[e-mobility-charging-stations-simulator.git] / tests / ocpp-server / server.py
index 5738c7e33ce778fcf401c1bdb7ac501f9944c3d1..ea02342b9ddc5214bf2cc42b3799a6e883028f47 100644 (file)
@@ -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)