Skip to content

Commit

Permalink
frontend_boost: add timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
URenko committed Jul 7, 2024
1 parent fbb596c commit 7aec741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comiclib/frontend_boost.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
s = requests.session()
for name in dependencies:
logger.info('downloading %s', name)
r = s.get(f"https://registry.npmjs.com/{name}/-/{name.rpartition('/')[-1]}-{dependencies[name]}.tgz", allow_redirects=True)
r = s.get(f"https://registry.npmjs.com/{name}/-/{name.rpartition('/')[-1]}-{dependencies[name]}.tgz", allow_redirects=True, timeout=15)
r.raise_for_status()
with tarfile.open(fileobj=io.BytesIO(r.content), mode='r:gz') as t:
for vendors, v_path in [(vendor_css, 'css/vendor'), (vendor_js, 'js/vendor'), (vendor_woff, 'css/webfonts')]:
Expand Down

0 comments on commit 7aec741

Please sign in to comment.