mozilla / f1

INACTIVE - http://mzl.la/ghe-archive - F1 is a browser extension that allows you to share links in a fast and fun way. Share links from within the browser, from any webpage, using the same services you already know and love. F1 is made by Mozilla.
http://f1.mozillamessaging.com/
Other
50 stars 10 forks source link

f1 error when sharing via email but 'to' address is not specified. #57

Closed mhammond closed 13 years ago

mhammond commented 13 years ago

Attempt to share a link via email but leave the 'to' field blank. F1 responds with a "f1 goofed up" error and the log will contain the error below:

12:37:44,296 ERROR [linkdrop.lib.helpers] [worker 5] ((,), {}) failed
Traceback (most recent call last):
  File "O:\src\mm\f1\work\linkdrop\lib\helpers.py", line 128, in json_exception_response
    return func(*args, **kwargs)
  File "O:\src\mm\f1\work\linkdrop\controllers\send.py", line 175, in send
    result, error = provider.api(acct).sendmessage(message, args)
  File "O:\src\mm\f1\work\linkdrop\lib\oauth\google_.py", line 255, in sendmessage
    to_ = options['to']
  File "o:\src\python-2.6-svn\lib\site-packages\webob-0.9.8-py2.6.egg\webob\multidict.py", line 315,
 in __getitem__
    return self._decode_value(self.multi.__getitem__(self._encode_key(key)))
  File "o:\src\python-2.6-svn\lib\site-packages\webob-0.9.8-py2.6.egg\webob\multidict.py", line 79,
in __getitem__
    raise KeyError(key)
KeyError: 'to'
mixedpuppy commented 13 years ago

improved error handling of recipient address, fixed