diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-10-26 23:09:37 +0100 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-10-26 23:22:57 +0100 |
| commit | eb723af5ce2787dd864c97d44767cbf9bc73076b (patch) | |
| tree | c23add298fa668b9d1b7b979088755ecb12bce10 /api/opendc/util/path_parser.py | |
| parent | 81003bf38eb5384f6b7f485b5186e1df4e7430b4 (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.py | 5 |
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 |
