Skip to content

Commit

Permalink
Minor fixes (#492)
Browse files Browse the repository at this point in the history
@Jared-Newell-Mobility new PR from the master branch, for background see
#426
  • Loading branch information
drc38 authored Oct 19, 2023
1 parent b181582 commit 9982713
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ocpp/charge_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ async def _handle_call(self, msg):
First the '_on_action' hook is executed and its response is returned to
the client. If there is no '_on_action' hook for Action in the message
a CallError with a NotImplemtendError is returned.
a CallError with a NotSupportedError is returned.
Next the '_after_action' hook is executed.
Expand Down
4 changes: 2 additions & 2 deletions ocpp/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,8 +437,8 @@ def to_exception(self):
)

raise UnknownCallErrorCodeError(
"Error code '%s' is not defined by the" " OCPP specification",
self.error_code,
f"Error code '{self.error_code}' is not defined by the"
" OCPP specification"
)

def __repr__(self):
Expand Down

0 comments on commit 9982713

Please sign in to comment.