I put the try catch in my main-method, and it worked to some extent (except from when I try to read from a file with no content) Any idea how to solve that? And is it a good place to have a try-except in main instead of in the class methods? My code is at http://nibbler.no/blog/wp-includes/Bookmarks.py