When a computed method raises an exception, full traceback is now logged.
This commit is contained in:
parent
97494592d5
commit
47a95fc6b6
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
import os, os.path, sys, types, mimetypes
|
import os, os.path, sys, types, mimetypes
|
||||||
|
from appy.shared.utils import Traceback
|
||||||
import appy.gen
|
import appy.gen
|
||||||
from appy.gen import String, Selection
|
from appy.gen import String, Selection
|
||||||
from appy.gen.utils import FieldDescr, GroupDescr, PhaseDescr, StateDescr, \
|
from appy.gen.utils import FieldDescr, GroupDescr, PhaseDescr, StateDescr, \
|
||||||
|
@ -715,6 +716,7 @@ class AbstractMixin:
|
||||||
if not isinstance(res, basestring):
|
if not isinstance(res, basestring):
|
||||||
res = repr(res)
|
res = repr(res)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
|
obj.log(Traceback.get(), type='error')
|
||||||
res = str(e)
|
res = str(e)
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue