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

Log:
Sync to recent changes in exception signals.


Modified:
   trunk/WIP/netsearch/test/musicdns.py
   trunk/WIP/webinfo/src/httpreader.py
   trunk/WIP/webinfo/test/rss_test.py

Modified: trunk/WIP/netsearch/test/musicdns.py
==============================================================================
--- trunk/WIP/netsearch/test/musicdns.py        (original)
+++ trunk/WIP/netsearch/test/musicdns.py        Sun Jan 20 19:32:03 2008
@@ -15,8 +15,9 @@
         print ASIN
     kaa.shutdown()
     
-def exception(ex):
-    print 'error:', ex
+def exception(type, value, tb):
+    print "Error:"
+    raise type, value, tb
     kaa.shutdown()
     
 # client key and version, do not use this one, get

Modified: trunk/WIP/webinfo/src/httpreader.py
==============================================================================
--- trunk/WIP/webinfo/src/httpreader.py (original)
+++ trunk/WIP/webinfo/src/httpreader.py Sun Jan 20 19:32:03 2008
@@ -113,7 +113,7 @@
             try:
                 result = self._handle_result_threaded(output)
             except Exception, e:
-                MainThreadCallback(self.signals['exception'].emit)(e)
+                
MainThreadCallback(self.signals['exception'].emit)(e.__class__, e, 
sys.exc_traceback)
             else:
                 MainThreadCallback(self._finished, result)()
         self.running = False

Modified: trunk/WIP/webinfo/test/rss_test.py
==============================================================================
--- trunk/WIP/webinfo/test/rss_test.py  (original)
+++ trunk/WIP/webinfo/test/rss_test.py  Sun Jan 20 19:32:03 2008
@@ -34,8 +34,8 @@
         return "%s" % self.title
 
 
-def exception(e):
-    print e
+def exception(type, value, tb):
+    print value
 
 def parse_result(result):
     f = RSSFeed()

-------------------------------------------------------------------------
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