Allow two datetime format using raise ValueError python

I have two csv files with two different format which are ‘%m/%d/%Y %H:%M:%S’ and ‘%d/%m/%Y %H:%M:%S’. Hence, I will get such ValueError : ValueError: time data ’14/12/2020 17:43:15′ does not match …

Tried several methods but this Value Error keeps popping up running with the WebDriver

Below is the part where my code program meets a runtime ValueError. while real_original_amount > 1: future_amount=driver.find_element_by_xpath(‘//[@id=”app”]/div[1]/div[2]/div[1]/div/…