fix: issue 39
authorSekiya <shusei.sekiya@sap.com>
Thu, 27 Jun 2024 08:51:03 +0000 (17:51 +0900)
committerSekiya <shusei.sekiya@sap.com>
Thu, 27 Jun 2024 08:51:03 +0000 (17:51 +0900)
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)