Permalink
Browse files

Fix dereference of non-existing property e.message. Also trying to ge…

…t output on badrequest - not working yet - something changed in latest web.py
  • Loading branch information...
1 parent 1587232 commit d988a4288a0f0cc38b364c346ff4e549a5bef305 @harryf committed Mar 6, 2009
Showing with 2 additions and 4 deletions.
  1. +2 −4 urldammit.py
View
@@ -176,8 +176,7 @@ def _store(self, uri, i):
return False
if not self.validstatus.match(status):
- self._badrequest("Bad value for status: '%s'" % status)
- return False
+ return self._badrequest("Bad value for status: '%s'" % status)
tags = unpack_tags(getattr(i, 'tags', []))
pairs = unpack_pairs(getattr(i, 'pairs', {}))
@@ -202,8 +201,7 @@ def _store(self, uri, i):
return
except URIError, e:
- self._badrequest(e.message)
- return False
+ return self._badrequest(e)
def _delete(self, id):
known = get_known()

0 comments on commit d988a42

Please sign in to comment.