aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/storage/mountstorage.py
diff options
context:
space:
mode:
Diffstat (limited to 'mediagoblin/storage/mountstorage.py')
-rw-r--r--mediagoblin/storage/mountstorage.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/mediagoblin/storage/mountstorage.py b/mediagoblin/storage/mountstorage.py
index 3fdf4ef0..dffc619b 100644
--- a/mediagoblin/storage/mountstorage.py
+++ b/mediagoblin/storage/mountstorage.py
@@ -17,6 +17,10 @@
from mediagoblin.storage import StorageInterface, clean_listy_filepath
+class MountError(Exception):
+ pass
+
+
class MountStorage(StorageInterface):
"""
Experimental "Mount" virtual Storage Interface
@@ -105,7 +109,7 @@ class MountStorage(StorageInterface):
def resolve_to_backend(self, filepath):
backend, filepath = self._resolve_to_backend(filepath)
if backend is None:
- raise Error("Path not mounted")
+ raise MountError("Path not mounted")
return backend, filepath
def __repr__(self, table=None, indent=[]):