Merge branch 'main' into issue39-ocpp2
[e-mobility-charging-stations-simulator.git] / tests / ocpp-server / server.py
index 6b497a4b73c5ff42864407317d0a476ae39a9466..3001ebd843cb7b787bef94b34da24752f0c28ff4 100644 (file)
@@ -123,7 +123,7 @@ class ChargePoint(ocpp.v201.ChargePoint):
         if response.status == ReportBaseType.accepted:
             logging.info("%s successful", Action.GetBaseReport)
         else:
-            logging.info("%s filed", Action.GetBaseReport)
+            logging.info("%s failed", Action.GetBaseReport)
 
 
 # Function to send OCPP command
@@ -137,7 +137,9 @@ async def send_ocpp_command(cp, command_name, delay=None, period=None):
                 logging.info("%s Send:", Action.GetBaseReport)
                 await cp.send_get_base_report()
     except Exception:
-        logging.exception(f"Not supported or Failure while processing command {command_name}")
+        logging.exception(
+            f"Not supported or Failure while processing command {command_name}"
+        )
 
     if delay:
         await asyncio.sleep(delay)