cleanup
[mediagoblin.git] / mediagoblin / storage / mountstorage.py
index 7239931fc8a9055de92ca6b53351985106a76fcb..dffc619bba7e45ad41961af4a28f37f37c1f3421 100644 (file)
@@ -1,5 +1,5 @@
 # GNU MediaGoblin -- federated, autonomous media hosting
-# Copyright (C) 2011 MediaGoblin contributors.  See AUTHORS.
+# Copyright (C) 2011, 2012 MediaGoblin contributors.  See AUTHORS.
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU Affero General Public License as published by
 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=[]):