Author: tack
Date: Sun Jan 20 19:32:20 2008
New Revision: 10302

Log:
Sync to recent changes in exception signals.


Modified:
   trunk/WIP/broken_plugins/audio.coversearch.py
   trunk/WIP/broken_plugins/video.imdb.py
   trunk/ui/src/image/plugins/apod.py

Modified: trunk/WIP/broken_plugins/audio.coversearch.py
==============================================================================
--- trunk/WIP/broken_plugins/audio.coversearch.py       (original)
+++ trunk/WIP/broken_plugins/audio.coversearch.py       Sun Jan 20 19:32:20 2008
@@ -151,16 +151,16 @@
         return []
 
 
-    def handle_exception(self, exception, item, box):
+    def handle_exception(self, exc_type, exc_value, exc_traceback, item, box):
         """
         Exception while getting data.
         """
         box.destroy()
-        if isinstance(exception, amazon.AmazonError):
+        if isinstance(exc_value, amazon.AmazonError):
             text = _('No matches for %s - %s') % \
                    (item['artist'], item['album'])
         else:
-            text = _('Unknown error: %s' % exception)
+            text = _('Unknown error: %s' % exc_value)
         MessageBox(text).show()
         item.show_menu()
 

Modified: trunk/WIP/broken_plugins/video.imdb.py
==============================================================================
--- trunk/WIP/broken_plugins/video.imdb.py      (original)
+++ trunk/WIP/broken_plugins/video.imdb.py      Sun Jan 20 19:32:20 2008
@@ -193,12 +193,12 @@
         thread.start()
             
 
-    def handle_exception(self, exception, item, box):
+    def handle_exception(self, exc_type, exc_value, exc_traceback, item, box):
         """
         Exception while getting data from IMDB.
         """
         box.destroy()
-        MessageBox(exception).show()
+        MessageBox(exc_value).show()
         item.show_menu()
 
         

Modified: trunk/ui/src/image/plugins/apod.py
==============================================================================
--- trunk/ui/src/image/plugins/apod.py  (original)
+++ trunk/ui/src/image/plugins/apod.py  Sun Jan 20 19:32:20 2008
@@ -133,13 +133,13 @@
             raise 'Could not open %s%s: %s' % (url, ref, e)
 
 
-    def _fetch_picture_error(self, error, box):
+    def _fetch_picture_error(self, exc_type, exc_value, exc_traceback, box):
         """
         Handle error for the thread in the main loop.
         """
         box.destroy()
-        if not isinstance(error, (str, unicode)):
-            error = 'Exception: %s' % error
+        if not isinstance(exc_value, (str, unicode)):
+            error = 'Exception: %s' % exc_value
         MessageWindow(error).show()
 
 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to