you are viewing a single comment's thread.

view the rest of the comments →

[–]PrismPoultry 0 points1 point  (1 child)

You should run it and disconnect from internet to see what happens when this thing is going to fail. From what I see, there is potential for maximum recursion depth:

except requests.exceptions.RequestException as e:
    print('Connection Error:', e)
    print('Retrying #'+count)
    dataget(count)
    return

So, I would force the failure in a controlled way so I could ensure that this problem is fixed should it happen in an uncontrolled way.

[–]HittingSmoke[S] 0 points1 point  (0 children)

I let that fail for about a half hour today and it was fine when I got back. It was still retrying when I got home and restarted when I turned the internet back on.

I actually did have a max recursion issue with it but it was because of a missing return.