[rhythmbox] loader: fix some error handling in the gio implementation
- From: Jonathan Matthew <jmatthew src gnome org>
- To: svn-commits-list gnome org
- Subject: [rhythmbox] loader: fix some error handling in the gio implementation
- Date: Wed, 3 Jun 2009 00:42:04 -0400 (EDT)
commit d5e56c4f81943084a6251f23ed1eac03da6f4905
Author: Edgar Luna <edgar luna gmail com>
Date: Wed Jun 3 14:41:44 2009 +1000
loader: fix some error handling in the gio implementation
---
plugins/rb/Loader.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/rb/Loader.py b/plugins/rb/Loader.py
index 9376909..cacda7c 100644
--- a/plugins/rb/Loader.py
+++ b/plugins/rb/Loader.py
@@ -42,7 +42,7 @@ class GioLoader(object):
try:
(contents, length, etag) = file.load_contents_finish(result)
callback_with_gdk_lock(self.callback, contents, self.args)
- except gio.Error, e:
+ except Exception, e:
# somehow check if we just got cancelled
callback_with_gdk_lock(self.callback, None, self.args)
@@ -54,7 +54,7 @@ class GioLoader(object):
file = gio.File(url)
file.load_contents_async(callback = self._contents_cb, cancellable=self._cancel)
except Exception, e:
- print "error getting contents of %s: %s" % e
+ print "error getting contents of %s: %s" % (url, e)
callback(None, *args)
def cancel (self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]