Skip to content

Commit

Permalink
convince Sonar that we're not going to throw an AttributeError
Browse files Browse the repository at this point in the history
  • Loading branch information
reinierl committed Oct 17, 2024
1 parent 9e7b56b commit bc41ef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocpp/charge_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ async def call(
skip_schema_validation=skip_schema_validation,
)

if response is None and suppress:
if response is None:
return

snake_case_payload = camel_to_snake_case(response.payload)
Expand Down

0 comments on commit bc41ef7

Please sign in to comment.