Feb-05-2020, 10:15 PM
(Feb-05-2020, 09:51 PM)Gribouillis Wrote: As @micseydel said, we know too little to give a valuable help.my script is kind of as following:
From the traceback, we can see that the error occured during the call of a function namedfind_element_by_css_selector()
. Again I cannot imagine such a function involving a high level of recursion without an error in the logic of the program. Typically, a function with that name will traverse a document's tree which depth is small.
def Trycart(): try: check if it's instock except Exception: <- when it's out of stock it will give an Exception Trycart <- so when it's out of stock it will try this function againIt is a bit more complicated then this^^ but this kind of sums it up. So I'm not using a while loop but I'm constantly repeating the function. Could this b the problem?