Skip to content

Commit

Permalink
ElementNotInteractableException handling
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronwtr authored Mar 27, 2021
1 parent 5233514 commit 83e1131
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extract_and_analyze_data_from_playlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from selenium.webdriver import ActionChains
from selenium.common.exceptions import JavascriptException
from selenium.common.exceptions import TimeoutException
from selenium.common.exceptions import ElementNotInteractableException
from tqdm import tqdm
from webdriver_manager.chrome import ChromeDriverManager

Expand Down Expand Up @@ -271,7 +272,7 @@ def scrape_genius(playlist_dataframe):

action.double_click(clickable).perform()

except (TimeoutError, JavascriptException, TimeoutException):
except (TimeoutError, JavascriptException, TimeoutException, ElementNotInteractableException):
pass

source = driver.page_source
Expand Down

0 comments on commit 83e1131

Please sign in to comment.