GetStream / stream-python

Python Client - Build Activity Feeds & Streams with GetStream.io
https://getstream.io
BSD 3-Clause "New" or "Revised" License
141 stars 41 forks source link

feed.add_activities() fails when activities empty list #42

Closed maryokhin closed 8 years ago

maryokhin commented 8 years ago

If activity_list is passed in add_activities as an empty list, then the client will make a request to the API and crash with an uncaught & obscure error message. Don't have the logs already, but it was complaining that necessary fields like verb, actor were missing.

maryokhin commented 8 years ago

Usually client libraries handle corner cases, so I didn't bother to check for empty list before calling the method :)

tschellenbach commented 8 years ago

Thank you for reporting this!

tbarbugli commented 8 years ago

this is going to be part of the next release