Correctly deal with a controller returning None
[invirt/packages/python-routefs.git] / routefs / __init__.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: