Strip3s / PhoenixBot

Phoenix Bot - A Bird Bot Resurrection
MIT License
262 stars 111 forks source link

Update selenium_utils.py to fix "changing value in chromedriver" error #66

Closed xStellarZ closed 3 years ago

xStellarZ commented 3 years ago

Adding try/except allows the program to ignore the "PermissionError: [Errno 13] Permission denied: [chromedriver path]" error. The error is caused by attempting to modify chromedriver (see link above the change_driver function) while it is already running. Modifying it more than once is not necessary and the error can be safely ignored.