Skip to content

Commit

Permalink
fix test case for suppressing CallError exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
reinierl committed Oct 16, 2024
1 parent 42287c8 commit b6e1db5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ocpp/charge_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,9 @@ async def call(
skip_schema_validation=skip_schema_validation,
)

if response is None and suppress:
return

snake_case_payload = camel_to_snake_case(response.payload)
# Create the correct Payload instance based on the received payload. If
# this method is called with a call.BootNotificationPayload, then it
Expand Down

0 comments on commit b6e1db5

Please sign in to comment.