Skip to content

Commit 29060b9

Browse files
committed
remove check for total number of artworks being 0
1 parent 141f294 commit 29060b9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

artscraper/find_artworks.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,7 @@ def _click_on_right_arrow(parent_element):
261261
# Initialize count of number of iterations for which the number of artworks remains the same
262262
n_tries = 0
263263

264-
while (len(list_links) < total_num_artworks and
265-
not (total_num_artworks == 0 and n_tries > 3)):
264+
while (len(list_links) < total_num_artworks and n_tries < 3):
266265

267266
# Save current number of artworks
268267
old_num_artworks = len(list_links)

0 commit comments

Comments
 (0)