Skip to content

Commit 7aec741

Browse files
committed
frontend_boost: add timeout
1 parent fbb596c commit 7aec741

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

comiclib/frontend_boost.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
s = requests.session()
8282
for name in dependencies:
8383
logger.info('downloading %s', name)
84-
r = s.get(f"https://registry.npmjs.com/{name}/-/{name.rpartition('/')[-1]}-{dependencies[name]}.tgz", allow_redirects=True)
84+
r = s.get(f"https://registry.npmjs.com/{name}/-/{name.rpartition('/')[-1]}-{dependencies[name]}.tgz", allow_redirects=True, timeout=15)
8585
r.raise_for_status()
8686
with tarfile.open(fileobj=io.BytesIO(r.content), mode='r:gz') as t:
8787
for vendors, v_path in [(vendor_css, 'css/vendor'), (vendor_js, 'js/vendor'), (vendor_woff, 'css/webfonts')]:

0 commit comments

Comments
 (0)