Author: duncan
Date: Sat Mar 8 16:33:58 2008
New Revision: 10489
Log:
Changed traceback.print_stack to traceback.print_exp
Modified:
branches/rel-1/freevo/src/tv/record_types.py
branches/rel-1/freevo/src/util/feedparser.py
Modified: branches/rel-1/freevo/src/tv/record_types.py
==============================================================================
--- branches/rel-1/freevo/src/tv/record_types.py (original)
+++ branches/rel-1/freevo/src/tv/record_types.py Sat Mar 8 16:33:58 2008
@@ -91,8 +91,7 @@
return None
except Exception, why:
import traceback
- traceback.print_stack()
- print why
+ traceback.print_exp()
return recordSchedule
@@ -111,8 +110,7 @@
return None
except Exception, why:
import traceback
- traceback.print_stack()
- print why
+ traceback.print_exp()
def addProgram(self, prog, key=None):
@@ -185,8 +183,7 @@
favorites_fh.close()
except Exception, why:
import traceback
- traceback.print_stack()
- print why
+ traceback.print_exp()
# save the favourites as a text file
try:
favorites_fh = open(config.TV_RECORD_FAVORITES_LIST, 'w')
@@ -199,8 +196,7 @@
favorites_fh.close()
except Exception, why:
import traceback
- traceback.print_stack()
- print why
+ traceback.print_exp()
def addFavorite(self, fav):
Modified: branches/rel-1/freevo/src/util/feedparser.py
==============================================================================
--- branches/rel-1/freevo/src/util/feedparser.py (original)
+++ branches/rel-1/freevo/src/util/feedparser.py Sat Mar 8 16:33:58 2008
@@ -2615,7 +2615,6 @@
except Exception, e:
if _debug:
import traceback
- traceback.print_stack()
traceback.print_exc()
sys.stderr.write('xml parsing failed\n')
result['bozo'] = 1
-------------------------------------------------------------------------
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