Commits

Matthew Schinckel committed d71e2ba

No such field Message.recipient

  • Participants
  • Parent commits 35de172

Comments (0)

Files changed (1)

File sms/models/gateway.py

         if message.recipient_number:
             raw_data[self.recipient_keyword] = message.recipient_number
         else:
-            raw_data[self.recipient_keyword] = message.recipient.mobile
+            raise ValueError("A recipient_number must be supplied")
         # We need to see if this message needs to be sent as unicode.
         # Could be smart and try to see if it is a short enough message.
         # Or look for a preference that says if this person may send unicode