kawa-kokosowa / msg

A simple, but powerful RESTful messaging library.
MIT License
3 stars 0 forks source link

Making post without "text" results in KeyError #22

Closed kawa-kokosowa closed 8 years ago

kawa-kokosowa commented 8 years ago

Command used: http POST localhost:5000/message message="i love kittens" --auth kitten:yarn

Expected behavior: Return error with message "text field required"

Actual Behavior:

  File "/Users/seabreeze/Projects/msgboard/msgboard/msg.py", line 201, in post
    text = json_data['text']
KeyError: 'text'