From: Evan Broder Date: Sat, 20 Sep 2008 16:58:38 +0000 (-0400) Subject: Correctly deal with a controller returning None X-Git-Tag: 1.0.1^0 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/python-routefs.git/commitdiff_plain/refs/heads/upstream Correctly deal with a controller returning None --- 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",