Skip to content
This repository was archived by the owner on Dec 22, 2023. It is now read-only.

Commit 678f563

Browse files
committed
DeepSource issues resolved
1 parent 5b9d0e7 commit 678f563

File tree

1 file changed

+4
-3
lines changed
  • Scripts/Web_Scrappers/PlayStoreReviewScrapper

1 file changed

+4
-3
lines changed

Scripts/Web_Scrappers/PlayStoreReviewScrapper/main.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,21 @@ def getPlaystoreReviews(app_id):
3535
try:
3636
python_button = browser.find_elements_by_xpath(path)[0]
3737
python_button.click()
38-
except Exception as ex:
39-
print("Exception {}".format(ex))
38+
except IndexError:
4039
elem.send_keys(Keys.PAGE_UP)
4140
pass
41+
4242

4343
if((no_of_pagedowns - 1) % 25 == 0):
4444
for path in [path1, path2, path3]:
4545
try:
4646
elem.send_keys(Keys.PAGE_UP)
4747
python_button = browser.find_elements_by_xpath(path)[0]
4848
python_button.click()
49-
except Exception as ex:
49+
except IndexError:
5050
print("Exception {}".format(ex))
5151
pass
52+
5253
no_of_pagedowns -= 1
5354

5455

0 commit comments

Comments
 (0)