[gnome-music/wip/merge: 125/343] Catch all errors when scanning for errors



commit 1bd4804e38f4f805e1510f946071e7aaeb5b6ac1
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Mon Jul 15 19:17:47 2013 +0200

    Catch all errors when scanning for errors

 gnomemusic/albumArtCache.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/albumArtCache.py b/gnomemusic/albumArtCache.py
index 90fed61..7200e16 100644
--- a/gnomemusic/albumArtCache.py
+++ b/gnomemusic/albumArtCache.py
@@ -132,7 +132,7 @@ class AlbumArtCache:
                                      path)
 
                             return
-                    except GLib.Error as error:
+                    except Exception as error:
                         if self.logLookupErrors:
                             print("ERROR:", error)
 
@@ -142,8 +142,8 @@ class AlbumArtCache:
                                                        on_pixbuf_ready, None)
                 return
 
-            except GLib.Error as error:
-                if (self.logLookupErrors):
+            except Exception as error:
+                if self.logLookupErrors:
                     print("ERROR:", error)
 
             self._tryLoad(size, artist, album, ++i, format, callback)


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