While I don't mind reading code, there is none here.
However the most common gaffe is to run the script directly. If I need it to keep running I don't do that. I write a batch file that runs the script and then loops when it exits to run again.
NOT A FIX. WORKAROUND.
Note: This is not generally a programming question, I think it has to do with the cmd more than anything else, hence why Im posting it here not in stackoverflow.
I have made a Python script which sends emails every 1 minute or so. When I leave the script running for an hour, it just closes without warning. In my script I do have a try / catch statement and a sleep function, so even if it did print an error it shouldnt close immidiately. Im not sure why it closes, does anyone have any pointers? Thanks in advance