From 5feba7180442c65a199eaba8d6792fdbf1fc8aee Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 10 Feb 2008 21:48:59 +0000 Subject: [PATCH] Catch and print all exceptions. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@162 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- Robots/bkmk_rsimple.py | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 2.39.5