diff --git a/src/allmydata/web/directory.py b/src/allmydata/web/directory.py index 207dc53ce..73ae13fa6 100644 --- a/src/allmydata/web/directory.py +++ b/src/allmydata/web/directory.py @@ -36,10 +36,10 @@ class BlockingFileError(Exception): def make_handler_for(node, parentnode=None, name=None): if parentnode: assert IDirectoryNode.providedBy(parentnode) - if IFileNode.providedBy(node): - return FileNodeHandler(node, parentnode, name) if IMutableFileNode.providedBy(node): return FileNodeHandler(node, parentnode, name) + if IFileNode.providedBy(node): + return FileNodeHandler(node, parentnode, name) if IDirectoryNode.providedBy(node): return DirectoryNodeHandler(node, parentnode, name) raise WebError("Cannot provide handler for '%s'" % node)