I have a Django application deployed to some server. Due to some mysterious reason, the permissions on one of the log files changes and Django can no longer write to it. The result is that Django refuses to start up, and uWSGI returns 'internal server errors' all the time.

How can I tell the Python RotatingFileHandler not to fail if it can't write to a log file? Best case would be to try another file or path, but a good enough fallback would be to simply not log to this particular file.