* morituri/program/cdrdao.py:

Wrap read in an exception handler.
	* morituri/common/task.py:
	  Debug exceptions more.
This commit is contained in:
Thomas Vander Stichele
2009-09-11 15:41:51 +00:00
parent e6f13ccf84
commit d30eb59a66
3 changed files with 31 additions and 15 deletions

View File

@@ -345,8 +345,8 @@ class SyncRunner(TaskRunner, ITaskListener):
self.debug('done running task %r', task)
if task.exception:
# FIXME: this gave a traceback in the logging module
#self.debug('raising exception, %r',
# log.getExceptionMessage(self._task.exception))
self.debug('raising exception, %r',
log.getExceptionMessage(task.exception))
raise task.exception
def _startWrap(self, task):
@@ -355,6 +355,8 @@ class SyncRunner(TaskRunner, ITaskListener):
try:
task.start(self)
except Exception, e:
self.debug('exception during start: %r',
log.getExceptionMessage(e))
task.exception = e
self.stopped(task)