Skip to content

Commit

Permalink
import correct exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Fiebig committed Apr 10, 2021
1 parent 20d004a commit e474f57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from bigbluebutton_api_python import util as bbbUtil
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions import JavascriptException
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.support.ui import WebDriverWait
Expand Down Expand Up @@ -175,7 +176,7 @@ def bbb_browser():

try:
browser.execute_script("document.querySelector('[aria-label=\"Users and messages toggle\"]').style.display='none';")
except selenium.common.exceptions.JavascriptException:
except JavascriptException:
browser.execute_script("document.querySelector('[aria-label=\"Users and messages toggle with new message notification\"]').style.display='none';")
browser.execute_script("document.querySelector('[aria-label=\"Options\"]').style.display='none';")
browser.execute_script("document.querySelector('[aria-label=\"Actions bar\"]').style.display='none';")
Expand Down

0 comments on commit e474f57

Please sign in to comment.