diff web/templog.py @ 391:5026780c2dc7

- Fix HTTPError - Add wsgi script
author Matt Johnston <matt@ucc.asn.au>
date Wed, 11 Jul 2012 23:42:24 +0800
parents a032051475fe
children ef59da811986
line wrap: on
line diff
--- a/web/templog.py	Wed Jul 11 23:38:36 2012 +0800
+++ b/web/templog.py	Wed Jul 11 23:42:24 2012 +0800
@@ -23,7 +23,7 @@
     mac = request.forms.hmac
 
     if hmac.new(config.HMAC_KEY, enc_lines).hexdigest() != mac:
-        raise HTTPError(code = 403, output = "Bad key")
+        raise bottle.HTTPError(code = 403, output = "Bad key")
 
     lines = zlib.decompress(binascii.a2b_base64(enc_lines)).split('\n')