Skip to content

Commit e538306

Browse files
committed
Longer timeout
1 parent 4919bef commit e538306

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

labelbox/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"The Labelbox python package."
22

3-
__version__ = '0.0.8'
3+
__version__ = '0.0.9'

labelbox/exporters/coco_exporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def add_label(
9292
"coco_url": image_url,
9393
"date_captured": None,
9494
}
95-
response = requests.get(image_url, stream=True, timeout=0.1)
95+
response = requests.get(image_url, stream=True, timeout=1.0)
9696
response.raw.decode_content = True
9797
image['width'], image['height'] = Image.open(response.raw).size
9898

labelbox/exporters/voc_exporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def write_label( # pylint: disable-msg=too-many-arguments
7878
images_output_dir: File path of directory to write images.
7979
"""
8080
# Download image and save it
81-
response = requests.get(image_url, stream=True)
81+
response = requests.get(image_url, stream=True, timeout=1.0)
8282
response.raw.decode_content = True
8383
image = Image.open(response.raw)
8484
image_fqn = os.path.join(

0 commit comments

Comments
 (0)