I don't know that I'd call it a convention, but it can be difficult to detect whether the open() was successful or not. I probably did this before we decided on Python 2.6 for the server, so I was trying to avoid Exceptions when trying to close() a file that was never opened. We could probably just change this to a nice with statement now, or we could leave it as is.