Skip to content

Commit

Permalink
fix timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp committed Nov 1, 2023
1 parent 6c13fa0 commit 01aa381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helper/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def get_plugins(self, repo_url: str) -> Dict[str, dict]:
"""
if not repo_url:
return {}
res = RequestUtils(proxies=settings.PROXY).get_res(f"{repo_url}package.json")
res = RequestUtils(proxies=settings.PROXY, timeout=10).get_res(f"{repo_url}package.json")
if res:
return json.loads(res.text)
return {}
Expand Down

0 comments on commit 01aa381

Please sign in to comment.