Commit 5d994bec authored by gdetrez's avatar gdetrez
Browse files

plus d'infos en cas de probleme

darcs-hash:20070908162834-f46e9-fe1c373a95f74e684e7f72babdde41a4abc49e92.gz
parent 4f0d379a
......@@ -12,7 +12,7 @@
#
# ##################################################################################################### #
import cherrypy, sys, os, datetime
import crans.cp
import crans.cp, crans.utils.exceptions
from ClassesIntranet.ModuleBase import ModuleBase
class main(ModuleBase):
......@@ -133,8 +133,9 @@ class main(ModuleBase):
fact.recuPaiement(cherrypy.session['uid'])
fact.save()
except Exception, e:
crans.cp.log("pb crédit", "GESTION FACTURES", 1)
return self.index(erreur=u"Problème lors du crédit")
crans.cp.log(unicode(e), "GESTION FACTURES", 1)
crans.cp.log( crans.utils.exceptions.formatExc( ), "GESTION FACTURES", 1)
return self.displayTemplate(erreur=u"Erreur: " + unicode(e) )
crans.cp.log("Facture creditee [fid=%s]" % fid, "GESTION FACTURES")
return self.displayTemplate(message=u"Facture créditée")
crediteFacture.exposed = True
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment