From cae7ee8ab4639963d3da7fef6f078a6078340a0b Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Thu, 25 Jun 2020 16:06:22 +0200 Subject: Improve abstraction --- opendc/util/rest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'opendc/util') diff --git a/opendc/util/rest.py b/opendc/util/rest.py index 2f2e1b53..33371e52 100644 --- a/opendc/util/rest.py +++ b/opendc/util/rest.py @@ -44,7 +44,8 @@ class Request(object): module_path = self.path.replace('{', '').replace('}', '').replace('/', '.') self.module = importlib.import_module(module_base.format(module_path)) - except ImportError: + except ImportError as e: + print(e) raise exceptions.UnimplementedEndpointError('Unimplemented endpoint: {}.'.format(self.path)) # Check the method -- cgit v1.2.3