Permalink
Browse files

Fixed another bug that assumes all things passed in are text

  • Loading branch information...
1 parent 6460400 commit 3ed180d8ea81747f8afaba92af8f47e4397de480 @arfrank committed Dec 6, 2010
Showing with 5 additions and 2 deletions.
  1. +5 −2 handlers/main.py
View
@@ -190,11 +190,14 @@ def post(self,Sid):
Instance.put()
Payload = Instance.get_dict()
#This is some really really bad bad form processing
+
#Payload = {}
for param in self.ALLOWED_PARAMETERS:
- Payload[param] = self.request.get(param)
+ Payload[param] = self.request.get(param,'')
+ for k in Payload:
+ if Payload[k] is None:
+ Payload[k] = ''
#has to have a smsurl, not necessarily fallback url
-
# GET THE TWIML URLS
self.data['Response'] = request.request_twiml(self.data['Account'], getattr( self.data['PhoneNumber'], self.InstanceMain[0]), getattr( self.data['PhoneNumber'], self.InstanceMain[1] ), Payload)

0 comments on commit 3ed180d

Please sign in to comment.