--- a/server/repository.py Tue Jun 28 17:59:31 2011 +0200
+++ b/server/repository.py Wed Jun 29 16:04:01 2011 +0200
@@ -55,7 +55,7 @@
BadConnectionId, Unauthorized, ValidationError,
RepositoryError, UniqueTogetherError, typed_eid, onevent)
from cubicweb import cwvreg, schema, server
-from cubicweb.server import utils, hook, pool, querier, sources
+from cubicweb.server import ShuttingDown, utils, hook, pool, querier, sources
from cubicweb.server.session import Session, InternalSession, InternalManager, \
security_enabled
from cubicweb.server.ssplanner import EditedEntity
@@ -942,7 +942,7 @@
checkshuttingdown=True):
"""return the user associated to the given session identifier"""
if checkshuttingdown and self.shutting_down:
- raise Exception('Repository is shutting down')
+ raise ShuttingDown('Repository is shutting down')
try:
session = self._sessions[sessionid]
except KeyError: