Browse files

Fixed it throws exception while web.config does not set 'static_path'…

… attr.
  • Loading branch information...
1 parent 55d7d19 commit 62aa4cf2b4e9867d5a41a6ffc6d6a2370a4cb8dc @shuge shuge committed Jan 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 web/httpserver.py
View
2 web/httpserver.py
@@ -217,7 +217,7 @@ def translate_path(self, path):
path = posixpath.normpath(urllib.unquote(path))
words = path.split('/')
words = filter(None, words)
- if web.config.static_path:
+ if hasattr(web.config, "static_path"):
path = os.path.dirname(web.config.static_path)
else:
path = os.getcwd()

0 comments on commit 62aa4cf

Please sign in to comment.