Skip to content

Commit f9f5cfa

Browse files
committed
fix test case for suppressing CallError exceptions
1 parent a8a093a commit f9f5cfa

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
@@ -393,6 +393,9 @@ async def call(self, payload, suppress=True, unique_id=None):
393393
unique_id=unique_id,
394394
)
395395

396+
if response is None and suppress:
397+
return
398+
396399
snake_case_payload = camel_to_snake_case(response.payload)
397400
# Create the correct Payload instance based on the received payload. If
398401
# this method is called with a call.BootNotificationPayload, then it

0 commit comments

Comments
 (0)