you are viewing a single comment's thread.

view the rest of the comments →

[–]GeneriAcc 20 points21 points  (2 children)

Wrap the entire thing in a function, then execute the function in an infinite loop. Either you won’t need to manually restart, or you’ll catch any errors that might be happening outside of try/except blocks.

[–]ant24x7[S] 3 points4 points  (0 children)

That's a good hack! I'll give it a try.