[repository] don't mangle the stack trace on exception
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Thu, 12 Jun 2014 18:31:21 +0200
changeset 10110 f601d2fdeff7
parent 10109 479190f019cc
child 10111 99863d0cbb10
[repository] don't mangle the stack trace on exception
server/repository.py
--- a/server/repository.py	Thu Nov 27 13:40:37 2014 +0100
+++ b/server/repository.py	Thu Jun 12 18:31:21 2014 +0200
@@ -338,8 +338,7 @@
             except Exception as ex:
                 import traceback
                 traceback.print_exc()
-                raise (Exception('Is the database initialised ? (cause: %s)' % ex),
-                       None, sys.exc_info()[-1])
+                raise Exception('Is the database initialised ? (cause: %s)' % ex)
         return appschema
 
     def _prepare_startup(self):