server/repository.py
branchstable
changeset 9171 be9596750678
parent 9165 7ebf3b1cdb4c
child 9184 b982e88e4836
equal deleted inserted replaced
9170:e6fe77dbcfdf 9171:be9596750678
   350             except BadSchemaDefinition:
   350             except BadSchemaDefinition:
   351                 raise
   351                 raise
   352             except Exception as ex:
   352             except Exception as ex:
   353                 import traceback
   353                 import traceback
   354                 traceback.print_exc()
   354                 traceback.print_exc()
   355                 raise Exception('Is the database initialised ? (cause: %s)' %
   355                 raise (Exception('Is the database initialised ? (cause: %s)' % ex),
   356                                 (ex.args and ex.args[0].strip() or 'unknown')), \
   356                        None, sys.exc_info()[-1])
   357                                 None, sys.exc_info()[-1]
       
   358         return appschema
   357         return appschema
   359 
   358 
   360     def _prepare_startup(self):
   359     def _prepare_startup(self):
   361         """Prepare "Repository as a server" for startup.
   360         """Prepare "Repository as a server" for startup.
   362 
   361