Cheers, I can not execute my selenium python script with the default chrome profile (aka the one I am connected to with email), The code works just fine in guest mode (The profile that selenium defaults to when running the script) but It refuses to even execute when adding the following line :
options.add_argument("user-data-dir=C:\\Users\\Faycal\\AppData\\Local\\Google\\Chrome\\User Data")
After running the code I am prompted with the following browser error : 
There are no errors in the terminal and the script does not even run, I tried adding \ at the end of the path, I tried changing the profile by adding another chromedriver option but nothing seems to work. Hopefully someone can help, thanks alot and have a nice one.
Edit 1: Here is the code I am trying to run :
import undetected_chromedriver as uc
import time
from selenium.webdriver import ActionChains, Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.color import Color
if __name__ == '__main__':
PATH = "C:\Program Files (x86)\chromedriver.exe"
url = "https://portail.if-algerie.com/login"
user_data_dir = r'C:\Users\Faycal\AppData\Local\Google\Chrome\User Data'
options = uc.ChromeOptions()
options.add_argument("--start-maximized")
options.add_argument('--disable-blink-features=AutomationControlled')
options.add_argument("--disable-plugins-discovery")
options.add_argument('--user-data-dir='+user_data_dir)
options.add_argument('--profile-directory=Default')
driver = uc.Chrome(options=options)
while(True):
try:
driver.get("https://portail.if-algerie.com/login")
break
except:
driver.refresh()
continue
driver.implicitly_wait(15)
email = driver.find_element(by=By.NAME, value="email")
password = driver.find_element(by=By.NAME, value="password")
login_button = driver.find_element(by=By.ID, value="login")
email.send_keys("mail")
password.send_keys("pwd")
time.sleep(2)
login_button.click()
time.sleep(2)
link = driver.find_element(by=By.LINK_TEXT, value="Tests et Examens")
link.click()
register_link = driver.find_element(by=By.LINK_TEXT, value="S'inscrire")
register_link.click()
time.sleep(2)```
