Correctly deal with a controller returning None upstream 1.0.1
authorEvan Broder <broder@mit.edu>
Sat, 20 Sep 2008 16:58:38 +0000 (12:58 -0400)
committerEvan Broder <broder@mit.edu>
Sat, 20 Sep 2008 16:58:38 +0000 (12:58 -0400)
routefs/__init__.py
setup.py

index 2c62ae5..c3b0357 100644 (file)
@@ -86,6 +86,8 @@ class RouteFS(fuse.Fuse):
             return NoEntry()
         controller = match.pop('controller')
         result = getattr(self, controller)(**match)
+        if result is None:
+            return NoEntry()
         if type(result) is str:
             result = File(result)
         if type(result) is list:
index 4fb1db7..a0421c3 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ from setuptools import setup, find_packages
 
 setup(
     name="RouteFS",
-    version="1.0.0",
+    version="1.0.1",
     description="RouteFS: A FUSE API wrapper based on URL routing",
     author="Evan Broder",
     author_email="broder@mit.edu",