From 1ca21d260eed935ea49c846dfd9ce217d8685778 Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Sat, 20 Sep 2008 12:58:38 -0400 Subject: [PATCH] Correctly deal with a controller returning None --- routefs/__init__.py | 2 ++ setup.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/routefs/__init__.py b/routefs/__init__.py index 2c62ae5..c3b0357 100644 --- a/routefs/__init__.py +++ b/routefs/__init__.py @@ -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: diff --git a/setup.py b/setup.py index 4fb1db7..a0421c3 100755 --- 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", -- 1.7.9.5