MoinMessage.py | raw changeset files shortlog |
1.1 --- a/MoinMessage.py Sat Jun 08 01:26:43 2013 +0200 1.2 +++ b/MoinMessage.py Thu Jun 13 18:51:07 2013 +0200 1.3 @@ -433,6 +433,10 @@ 1.4 req = cls(host, port) 1.5 req.request("PUT", path, text) 1.6 resp = req.getresponse() 1.7 + 1.8 + if resp.status >= 400: 1.9 + raise MoinMessageError, "Message sending failed: %s" % resp.status 1.10 + 1.11 return resp.read() 1.12 1.13 def parseURL(url):