Skip to content

Commit db9a903

Browse files
committed
Add timeout attribute to request.get to make pylint happy
1 parent 2643182 commit db9a903

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws_gate/bootstrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def download(self):
4242
self.download_path = os.path.join(tmp_dir, file_name)
4343
try:
4444
logger.debug("Downloading session-manager-plugin archive from %s", self.url)
45-
with requests.get(self.url, stream=True) as req:
45+
with requests.get(self.url, stream=True, timeout=10) as req:
4646
req.raise_for_status()
4747
with open(self.download_path, "wb") as f:
4848
shutil.copyfileobj(req.raw, f)

0 commit comments

Comments
 (0)