Skip to content

Commit 2164427

Browse files
committed
handling for the broken parameters
1 parent 189321f commit 2164427

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http_prompt/context/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __init__(self, url=None, spec=None):
3636
self.root.add_path(*path_tokens)
3737
endpoint = paths[path]
3838
for method, info in endpoint.items():
39-
params = info.get('parameters')
39+
params = getattr(info, 'parameters', [])
4040
if params:
4141
for param in params:
4242
if param.get('in') != 'path':

0 commit comments

Comments
 (0)