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.
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.