Skip to content

Commit 020b70a

Browse files
committed
handling for the broken methods
1 parent 189321f commit 020b70a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

http_prompt/context/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ 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+
if not isinstance(info, dict):
40+
continue
3941
params = info.get('parameters')
4042
if params:
4143
for param in params:

0 commit comments

Comments
 (0)