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 Feb 14, 2024
1 parent a8a093a commit f9f5cfa
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 @@ -393,6 +393,9 @@ async def call(self, payload, suppress=True, unique_id=None):
unique_id=unique_id,
)

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 f9f5cfa

Please sign in to comment.