Skip to content

Commit

Permalink
handling for the broken methods
Browse files Browse the repository at this point in the history
  • Loading branch information
michilu committed May 17, 2019
1 parent 189321f commit 020b70a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions http_prompt/context/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def __init__(self, url=None, spec=None):
self.root.add_path(*path_tokens)
endpoint = paths[path]
for method, info in endpoint.items():
if not isinstance(info, dict):
continue
params = info.get('parameters')
if params:
for param in params:
Expand Down

0 comments on commit 020b70a

Please sign in to comment.