Adam Lowry  committed 9ef6ffd

Changed message to msg in HttpStatusCode to avoid 2.6 DeprecationWarnings.

  • Participants
  • Parent commits 90ebe10

Comments (0)

Files changed (2)

File piston/

             return resp
         except HttpStatusCode, e:
-            return HttpResponse(e.message, status=e.code)
+            return HttpResponse(e.msg, status=e.code)
     def cleanup_request(request):

File piston/

         self.form = form
 class HttpStatusCode(Exception):
-    def __init__(self, message, code=200):
-        self.message = message
+    def __init__(self, msg, code=200):
+        self.msg = msg
         self.code = code
 def validate(v_form, operation='POST'):