Skip to content

Sending empty arrays or dictionaries may raise an exception#5

Closed
fejesd wants to merge 2 commits into
miguelgrinberg:masterfrom
fejesd:master
Closed

Sending empty arrays or dictionaries may raise an exception#5
fejesd wants to merge 2 commits into
miguelgrinberg:masterfrom
fejesd:master

Conversation

@fejesd

@fejesd fejesd commented Oct 14, 2015

Copy link
Copy Markdown

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
Copy Markdown
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.

2 participants