Skip to content

Commit

Permalink
Merge pull request #125 from Worteks/fix-chat-click
Browse files Browse the repository at this point in the history
fix(exception)
  • Loading branch information
mtsonline authored May 26, 2021
2 parents 8ce8c48 + 37e5871 commit d7c4a21
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 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 ElementClickInterceptedException
from selenium.common.exceptions import JavascriptException
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.chrome.options import Options
Expand Down Expand Up @@ -162,7 +163,10 @@ def bbb_browser():
if element.is_enabled():
element.click()
except NoSuchElementException:
# ignore (chat might be disabled)
# ignore (chat might be disabled)
logging.info("could not find chat input or chat toggle")
except ElementClickInterceptedException:
# ignore (chat might be disabled)
logging.info("could not find chat input or chat toggle")

time.sleep(10)
Expand Down

0 comments on commit d7c4a21

Please sign in to comment.