Catch exceptions

Cruella DeVille siv.hansen at gmail.com
Mon Feb 27 19:31:09 EST 2006


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




More information about the Python-list mailing list