Minor bugfixes.

This commit is contained in:
Gaetan Delannay 2010-01-12 08:58:40 +01:00
parent 2ecd2d7ef1
commit 500637eb53
5 changed files with 42 additions and 19 deletions

View file

@ -1,5 +1,6 @@
# ------------------------------------------------------------------------------
import re, time
from appy.shared.utils import Traceback
from appy.gen.utils import sequenceTypes, PageDescr
from appy.shared.data import countries
@ -436,7 +437,8 @@ class Action(Type):
# anything), we consider the action as successfull.
if res[0] == None: res[0] = True
except Exception, e:
res = (False, str(e))
res = (False, 'An error occurred. %s' % str(e))
obj.log(Traceback.get(), type='error')
return res
class Info(Type):