app/soc/views/out_of_band.py
changeset 1017 6ad4fdb48840
parent 970 8b5611d5b053
child 1307 091a21cf3627
--- a/app/soc/views/out_of_band.py	Tue Jan 27 22:57:19 2009 +0000
+++ b/app/soc/views/out_of_band.py	Tue Jan 27 22:59:01 2009 +0000
@@ -32,7 +32,7 @@
   TEMPLATE_NAME = 'error.html'
   DEF_TEMPLATE = 'soc/error.html'
 
-  def __init__(self, message_fmt, context=None, **response_args):
+  def __init__(self, message_fmt=None, context=None, **response_args):
     """Constructor used to set response message and HTTP response arguments.
   
     Args:
@@ -46,6 +46,9 @@
         set the HTTP status code for the response
     """
 
+    if not message_fmt:
+      message_fmt = ""
+
     self.message_fmt = message_fmt
     self.context = context
     self.response_args = response_args