Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data handler receiving incomplete data should be handled gracefully #8

Closed
vegu opened this issue Apr 20, 2017 · 0 comments
Closed

data handler receiving incomplete data should be handled gracefully #8

vegu opened this issue Apr 20, 2017 · 0 comments
Labels

Comments

@vegu
Copy link
Contributor

vegu commented Apr 20, 2017

Split out from 20c/vaping#12

Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/gevent/greenlet.py", line 536, in run
    result = self._run(*self.args, **self.kwargs)
  File "/usr/lib/python2.7/site-packages/vaping/plugins/__init__.py", line 134, in _run
    self._emit.emit(msg)
  File "/usr/lib/python2.7/site-packages/vaping/plugins/vodka.py", line 56, in emit
    vodka.data.handle(data.get("type"), data, data_id=data.get("source"), caller=self)
  File "/usr/lib/python2.7/site-packages/vodka/data/__init__.py", line 34, in handle
    data = handler(data, caller=caller)
  File "/usr/lib/python2.7/site-packages/vodka/data/handlers.py", line 93, in __call__
    for d in data["data"]])
TypeError: 'NoneType' object has no attribute '__getitem__'
Wed Apr 19 12:56:16 2017 <FPing at 0x7f1f27667d70> failed with TypeError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant