[rhythmbox] rb.Loader: don't bother reporting 'not found' errors



commit 8574fc16a93dd398acf2fca36032753ffc94b531
Author: Jonathan Matthew <jonathan d14n org>
Date:   Mon Nov 18 22:34:17 2019 +1000

    rb.Loader: don't bother reporting 'not found' errors

 plugins/rb/Loader.py | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/plugins/rb/Loader.py b/plugins/rb/Loader.py
index 8e5cc2116..597343199 100644
--- a/plugins/rb/Loader.py
+++ b/plugins/rb/Loader.py
@@ -46,6 +46,10 @@ class Loader(object):
                                call_callback(self.callback, contents, self.args)
                        else:
                                call_callback(self.callback, None, self.args)
+               except GLib.Error as ge:
+                       if not ge.matches(Gio.io_error_quark(), Gio.IOErrorEnum.NOT_FOUND):
+                               sys.excepthook(*sys.exc_info())
+                       call_callback(self.callback, None, self.args)
                except Exception as e:
                        sys.excepthook(*sys.exc_info())
                        call_callback(self.callback, None, self.args)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]