[rhythmbox] rb.Loader: improve exception reporting a bit
- From: Jonathan Matthew <jmatthew src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rhythmbox] rb.Loader: improve exception reporting a bit
- Date: Sun, 1 Nov 2009 06:00:23 +0000 (UTC)
commit 798425a26a5d65f555964cf2e7a9d1aa1c3b9858
Author: Jonathan Matthew <jonathan d14n org>
Date: Sat Oct 31 12:55:38 2009 +1000
rb.Loader: improve exception reporting a bit
The backtrace from the exception is usually interesting, and re-raising
the exception never helps anyone, so just print the exception and return.
plugins/rb/Loader.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/rb/Loader.py b/plugins/rb/Loader.py
index fc60560..7d7c91e 100644
--- a/plugins/rb/Loader.py
+++ b/plugins/rb/Loader.py
@@ -26,6 +26,7 @@
import gobject
import gtk
+import sys
def callback_with_gdk_lock(callback, data, args):
gtk.gdk.threads_enter()
@@ -35,8 +36,8 @@ def callback_with_gdk_lock(callback, data, args):
return v
except Exception, e:
print "Exception caught in loader callback: %s" % str(e)
+ sys.excepthook(*sys.exc_info())
gtk.gdk.threads_leave()
- raise e
class GioLoader(object):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]