Skip to content

Commit f812a39

Browse files
committed
fix: count in retries
1 parent 7dcef2b commit f812a39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/diffgram/core/diffgram_dataset_iterator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def get_image_data(self, diffgram_file):
5353
image = imread(diffgram_file.image.get('url_signed'))
5454
break
5555
except Exception as e:
56-
if i < MAX_RETRIES:
56+
if i < MAX_RETRIES - 1:
5757
continue
5858
else:
5959
raise e

0 commit comments

Comments
 (0)