I have a script that creates an image file. The image file is served by web.py
After a certain time, when accessing the image served by the script I receive an error 'Unhandled exception'. At that point restarting the web instance is the only thing that makes the script work again.
What could be the problem?