From: Oleg Broytman Date: Sun, 10 Feb 2008 21:48:59 +0000 (+0000) Subject: Catch and print all exceptions. X-Git-Tag: v4.5.3~214 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;ds=inline;h=5feba7180442c65a199eaba8d6792fdbf1fc8aee;p=bookmarks_db.git Catch and print all exceptions. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@162 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- diff --git a/Robots/bkmk_rsimple.py b/Robots/bkmk_rsimple.py index ea2dece..6f65b22 100644 --- a/Robots/bkmk_rsimple.py +++ b/Robots/bkmk_rsimple.py @@ -243,6 +243,11 @@ class robot_simple(Robot): except KeyboardInterrupt: return 0 + except BaseException, msg: + bookmark.error = "Exception!" + import traceback + traceback.print_exc() + finally: self.finish_check_url(bookmark)