Permalink
Browse files

Fix proppatch remove of non-existent property.

  • Loading branch information...
1 parent 3830e4d commit 718851fbd3814894da22c1ebfc741a1275a63383 @cyrusdaboo cyrusdaboo committed Aug 30, 2006
Showing with 15 additions and 0 deletions.
  1. +15 −0 patches/Twisted/twisted.web2.dav.method.proppatch.patch
@@ -0,0 +1,15 @@
+Index: twisted/web2/dav/method/proppatch.py
+===================================================================
+--- twisted/web2/dav/method/proppatch.py (revision 17951)
++++ twisted/web2/dav/method/proppatch.py (working copy)
+@@ -117,8 +117,8 @@
+ x = waitForDeferred(action(property, request))
+ yield x
+ x.getResult()
+- except ValueError, e:
+- # Convert ValueError exception into HTTPError
++ except KeyError, e:
++ # Convert KeyError exception into HTTPError
+ responses.add(
+ Failure(exc_value=HTTPError(StatusResponse(responsecode.FORBIDDEN, str(e)))),
+ property

0 comments on commit 718851f

Please sign in to comment.