server/repository.py
branchstable
changeset 9171 be9596750678
parent 9165 7ebf3b1cdb4c
child 9184 b982e88e4836
--- a/server/repository.py	Mon Jul 22 11:09:28 2013 +0200
+++ b/server/repository.py	Thu Jul 18 12:36:56 2013 +0200
@@ -352,9 +352,8 @@
             except Exception as ex:
                 import traceback
                 traceback.print_exc()
-                raise Exception('Is the database initialised ? (cause: %s)' %
-                                (ex.args and ex.args[0].strip() or 'unknown')), \
-                                None, sys.exc_info()[-1]
+                raise (Exception('Is the database initialised ? (cause: %s)' % ex),
+                       None, sys.exc_info()[-1])
         return appschema
 
     def _prepare_startup(self):