Skip to content

Commit b6e1db5

Browse files
committed
fix test case for suppressing CallError exceptions
1 parent 42287c8 commit b6e1db5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ocpp/charge_point.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,9 @@ async def call(
412412
skip_schema_validation=skip_schema_validation,
413413
)
414414

415+
if response is None and suppress:
416+
return
417+
415418
snake_case_payload = camel_to_snake_case(response.payload)
416419
# Create the correct Payload instance based on the received payload. If
417420
# this method is called with a call.BootNotificationPayload, then it

0 commit comments

Comments
 (0)