# 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
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=[]):