]> git.phdru.name Git - bookmarks_db.git/commitdiff
Catch and print all exceptions.
authorOleg Broytman <phd@phdru.name>
Sun, 10 Feb 2008 21:48:59 +0000 (21:48 +0000)
committerOleg Broytman <phd@phdru.name>
Sun, 10 Feb 2008 21:48:59 +0000 (21:48 +0000)
git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@162 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

Robots/bkmk_rsimple.py

index ea2decec8b82ee78ebb6d3dedc2cd5ee5b5dd435..6f65b2203960d12ec397e2736770dbb32770a5e5 100644 (file)
@@ -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)