traceback after wrong DELETE request
Following nonsensical request causes traceback:
curl --http2 -k -X DELETE 'https://127.0.0.1:8443/restconf/data/dns-server:dns-server/server-options/listen-endpoi'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/pspacek/pkg/jetconf/CLEAN/jetconf/jetconf/http_handlers.py", line 123, in error
err_body["error-message"] = exception.__class__.__name__ + ": " + str(exception.message)
AttributeError: 'NonexistentSchemaNode' object has no attribute 'message'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib64/python3.6/asyncio/events.py", line 145, in _run
self._callback(*self._args)
File "/usr/lib64/python3.6/asyncio/selector_events.py", line 734, in _read_ready
self._protocol.data_received(data)
File "/usr/lib64/python3.6/asyncio/sslproto.py", line 518, in data_received
self._app_protocol.data_received(chunk)
File "/home/pspacek/pkg/jetconf/CLEAN/jetconf/jetconf/rest_server.py", line 115, in data_received
self.run_request_handler(headers, event.stream_id, None)
File "/home/pspacek/pkg/jetconf/CLEAN/jetconf/jetconf/rest_server.py", line 190, in run_request_handler
resp = h(headers, data, self.client_cert)
File "/home/pspacek/pkg/jetconf/CLEAN/jetconf/jetconf/http_handlers.py", line 681, in delete_api
http_resp = self._delete(api_pth, username)
File "/home/pspacek/pkg/jetconf/CLEAN/jetconf/jetconf/http_handlers.py", line 648, in _delete
exception=e
File "/home/pspacek/pkg/jetconf/CLEAN/jetconf/jetconf/http_handlers.py", line 125, in error
err_body["error-message"] = exception.__class__.__name__ + ": " + str(exception)
File "/home/pspacek/pkg/jetconf/CLEAN/jetconf/lib64/python3.6/site-packages/yangson/exceptions.py", line 289, in __str__
prefix = "" if self.ns == self.qn[1] else self.ns + ":"
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'