summaryrefslogtreecommitdiff
path: root/cherrypy/lib/static.py
diff options
context:
space:
mode:
Diffstat (limited to 'cherrypy/lib/static.py')
-rw-r--r--cherrypy/lib/static.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cherrypy/lib/static.py b/cherrypy/lib/static.py
index a630dae6..a26dd4ac 100644
--- a/cherrypy/lib/static.py
+++ b/cherrypy/lib/static.py
@@ -49,7 +49,7 @@ def serve_file(path, content_type=None, disposition=None, name=None,
try:
st = os.stat(path)
- except OSError:
+ except (OSError, TypeError):
if debug:
cherrypy.log('os.stat(%r) failed' % path, 'TOOLS.STATIC')
raise cherrypy.NotFound()