--- a/server/__init__.py Tue Jun 28 17:59:31 2011 +0200
+++ b/server/__init__.py Wed Jun 29 16:04:01 2011 +0200
@@ -36,6 +36,12 @@
from cubicweb import CW_SOFTWARE_ROOT
+class ShuttingDown(BaseException):
+ """raised when trying to access some resources while the repository is
+ shutting down. Inherit from BaseException so that `except Exception` won't
+ catch it.
+ """
+
# server-side debugging #########################################################
# server debugging flags. They may be combined using binary operators.