Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions erpc_python/erpc/server.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python

# Copyright 2016 NXP
# Copyright 2020 ACRIOS Systems s.r.o.
# All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
Expand All @@ -20,8 +21,8 @@ def service_id(self):
def handle_invocation(self, methodId, sequence, codec):
try:
self._methods[methodId](sequence, codec)
except KeyError:
raise RequestError("invalid method ID (%d)" % (methodId))
except Exception as e:
raise RequestError("invalid method ID (%d) or method implementation: %s" % (methodId, str(e)))

class Server(object):
def __init__(self, transport=None, codecClass=None):
Expand Down