[banshee] Catch NotImplementedException in MB# (BGO #527788)



commit 0f522f0a1323c4b5dab344ce4c290bc92ee67011
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Tue Jun 16 11:27:46 2009 -0500

    Catch NotImplementedException in MB# (BGO #527788)

 .../MusicBrainz/MusicBrainz/MusicBrainzObject.cs   |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/Libraries/MusicBrainz/MusicBrainz/MusicBrainzObject.cs b/src/Libraries/MusicBrainz/MusicBrainz/MusicBrainzObject.cs
index 940e48b..dffb4de 100644
--- a/src/Libraries/MusicBrainz/MusicBrainz/MusicBrainzObject.cs
+++ b/src/Libraries/MusicBrainz/MusicBrainz/MusicBrainzObject.cs
@@ -417,7 +417,10 @@ namespace MusicBrainz
                 throw new MusicBrainzNotFoundException ();
             }
 
-            bool from_cache = cache_implemented && response.IsFromCache;
+            bool from_cache = false;
+            try {
+                from_cache = cache_implemented && response.IsFromCache;
+            } catch (NotImplementedException) {}
 
             if (from_cache) Monitor.Exit (server_mutex);
 



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