server/__init__.py
changeset 7574 34154f48d255
parent 7536 29961a416faa
parent 7573 c8f8762c986d
child 7906 203d574c8a1d
child 7915 a7f3245e1728
--- 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.