[FIX]:TypeERROR:logger.exception

bzr revid: nch@tinyerp.com-20100702063124-p096dk42sngx6i0g
This commit is contained in:
nch@tinyerp.com 2010-07-02 12:01:24 +05:30
parent 7274f7f3da
commit 063875402e
1 changed files with 8 additions and 8 deletions

View File

@ -65,8 +65,8 @@ def _child_get(node, self=None, tagname=None):
eval(n.get('rml_except'), {}, self.localcontext)
except GeneratorExit:
continue
except Exception:
logging.getLogger('report').exception()
except Exception, e:
logging.getLogger('report').exception(e)
continue
if n.get('rml_tag'):
try:
@ -77,8 +77,8 @@ def _child_get(node, self=None, tagname=None):
yield n2
except GeneratorExit:
yield n
except Exception:
logging.getLogger('report').exception()
except Exception, e:
logging.getLogger('report').exception(e)
yield n
else:
yield n
@ -88,8 +88,8 @@ def _child_get(node, self=None, tagname=None):
eval(n.get('rml_except'), {}, self.localcontext)
except GeneratorExit:
continue
except Exception:
logging.getLogger('report').exception()
except Exception, e:
logging.getLogger('report').exception(e)
continue
if self and self.localcontext and n.get('rml_tag'):
try:
@ -101,8 +101,8 @@ def _child_get(node, self=None, tagname=None):
tagname = ''
except GeneratorExit:
pass
except Exception:
logging.getLogger('report').exception()
except Exception, e:
logging.getLogger('report').exception(e)
pass
if (tagname is None) or (n.tag==tagname):
yield n