summaryrefslogtreecommitdiff
path: root/api/opendc/util/path_parser.py
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2020-10-26 23:09:37 +0100
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-10-26 23:22:57 +0100
commiteb723af5ce2787dd864c97d44767cbf9bc73076b (patch)
treec23add298fa668b9d1b7b979088755ecb12bce10 /api/opendc/util/path_parser.py
parent81003bf38eb5384f6b7f485b5186e1df4e7430b4 (diff)
Do not hardcode test ids inside tests
Diffstat (limited to 'api/opendc/util/path_parser.py')
-rw-r--r--api/opendc/util/path_parser.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/api/opendc/util/path_parser.py b/api/opendc/util/path_parser.py
index a8bbdeba..c8452f20 100644
--- a/api/opendc/util/path_parser.py
+++ b/api/opendc/util/path_parser.py
@@ -31,9 +31,6 @@ def parse(version, endpoint_path):
for (name, value) in zip(path, endpoint_path_parts):
if name.startswith('{'):
- try:
- parameters[name.strip('{}')] = int(value)
- except:
- parameters[name.strip('{}')] = value
+ parameters[name.strip('{}')] = value
return '{}/{}'.format(version, '/'.join(path)), parameters