mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-18 06:34:19 +01:00
Creates a speciall error code for unexpected error
The rationale behind this is being able to identify exceptions that we may not be taking into account
This commit is contained in:
@@ -48,6 +48,9 @@ class Inspector:
|
||||
if self.debug:
|
||||
self.logging.error("[Inspector] JSONRPCException. Error code {}".format(e))
|
||||
|
||||
# In case of an unknown exception, assign a special rcode and reason.
|
||||
r = (errors.UNKNOWN_JSON_RPC_EXCEPTION, "Unexpected error occurred")
|
||||
|
||||
return r
|
||||
|
||||
def check_locator(self, locator):
|
||||
|
||||
Reference in New Issue
Block a user