Python Forum
Error after a few minutes of running
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error after a few minutes of running
#9
(Feb-05-2020, 09:51 PM)Gribouillis Wrote: As @micseydel said, we know too little to give a valuable help.

From the traceback, we can see that the error occured during the call of a function named find_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.
my script is kind of as following:
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 again
It 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?
Reply


Messages In This Thread
Error after a few minutes of running - by julio2000 - Feb-05-2020, 06:54 PM
RE: Error after a few minutes of running - by julio2000 - Feb-05-2020, 10:15 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  error when running headless selenium julio2000 2 4,587 Feb-01-2020, 12:41 PM
Last Post: julio2000
  Running flask run produces error. Charles1 1 4,075 Oct-04-2019, 10:38 PM
Last Post: snippsat
  Error when running .py file but not when entering exact same code in CLI Broadsworde 3 2,756 Dec-11-2018, 09:06 AM
Last Post: Broadsworde
  whats the error in this code in python 3.0 as this is running 2.0 pyhon ekansh 7 5,183 Feb-05-2018, 06:47 AM
Last Post: seco

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020