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

Sending empty arrays or dictionaries may raise an exception #5

Closed
wants to merge 2 commits into from

Conversation

fejesd
Copy link

@fejesd fejesd commented Oct 14, 2015

eg. emit('test message',{}) will fail due to functools.reduce doesn't support empty sequences. This fix seems to work for me flawlessly, maybe you will find a more elegant solution.

@miguelgrinberg
Copy link
Owner

Thanks. I have addressed this by adding an initializer to the reduce function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants