summaryrefslogtreecommitdiff
path: root/opendc/util
diff options
context:
space:
mode:
authorGeorgios Andreadis <info@gandreadis.com>2020-06-25 16:06:22 +0200
committerGeorgios Andreadis <info@gandreadis.com>2020-06-25 16:06:22 +0200
commitcae7ee8ab4639963d3da7fef6f078a6078340a0b (patch)
tree3777700d19321c3acb043e4ab99bd333af35fc97 /opendc/util
parentff31029e732dd56743690dc608f535163a0548ff (diff)
Improve abstraction
Diffstat (limited to 'opendc/util')
-rw-r--r--opendc/util/rest.py3
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