Source

WebObTestCoverage / webob / descriptors.py

Diff from to

webob/descriptors.py

 
 def upath_property(key):
     def fget(req):
-        return req.environ[key].decode('UTF8', req.unicode_errors)
+        return req.environ.get(key, '').decode('UTF8', req.unicode_errors)
     def fset(req, val):
         req.environ[key] = val.encode('UTF8', req.unicode_errors)
     return property(fget, fset, doc='upath_property(%r)' % key)