diff options
| author | Georgios Andreadis <info@gandreadis.com> | 2020-06-25 16:06:22 +0200 |
|---|---|---|
| committer | Georgios Andreadis <info@gandreadis.com> | 2020-06-25 16:06:22 +0200 |
| commit | cae7ee8ab4639963d3da7fef6f078a6078340a0b (patch) | |
| tree | 3777700d19321c3acb043e4ab99bd333af35fc97 /opendc/util | |
| parent | ff31029e732dd56743690dc608f535163a0548ff (diff) | |
Improve abstraction
Diffstat (limited to 'opendc/util')
| -rw-r--r-- | opendc/util/rest.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
