# HG changeset patch # User Aurelien Campeas # Date 1402590681 -7200 # Node ID f601d2fdeff7b2b58889e3a9fd9a44eb0fd0e1ea # Parent 479190f019cc6c18f769a96628e87a1630a3850a [repository] don't mangle the stack trace on exception diff -r 479190f019cc -r f601d2fdeff7 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):