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

Client breaks when raising errors #33

Closed tschellenbach closed 8 years ago

tschellenbach commented 8 years ago

Traceback (most recent call last): File "examples/etoro_example.py", line 46, in activity_response = user_feed_crembo.add_activities(activities) File "/Users/thierryschellenbach/workspace/stream-python/stream/feed.py", line 82, in add_activities self.feed_url, data=data, signature=token) File "/Users/thierryschellenbach/workspace/stream-python/stream/client.py", line 203, in post return self._make_request(self.session.post, _args, *_kwargs) File "/Users/thierryschellenbach/workspace/stream-python/stream/client.py", line 170, in _make_request return self._parse_response(response) File "/Users/thierryschellenbach/workspace/stream-python/stream/client.py", line 115, in _parse_response self.raise_exception(parsed_result, status_code=response.status_code) File "/Users/thierryschellenbach/workspace/stream-python/stream/client.py", line 186, in raise_exception for field, errors in exception_fields.items(): AttributeError: 'list' object has no attribute 'items'