Skip to content

Commit

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

Expand Down

0 comments on commit daaa31d

Please sign in to comment.