Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
drc38 authored Nov 3, 2023
1 parent 77ebac6 commit 6e485b6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ocpp/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,11 @@ def validate_payload(message: Union[Call, CallResult], ocpp_version: str) -> Non
)
except OSError:
raise ValidationError(
f"JSON validation schema not found "
f"for action: {message.action}"
f"JSON validation schema not found for action: {message.action}"
)
except json.JSONDecodeError:
raise ValidationError(
f"Error in decoding JSON validation schema "
f"for action: {message.action}"
f"Error in decoding JSON validation schema for action: {message.action}"
)

try:
Expand Down

0 comments on commit 6e485b6

Please sign in to comment.