Skip to content

Commit aa6a109

Browse files
committed
Merge branch 'master' of github.com:tschellenbach/stream-python
2 parents a0fa4a9 + 7556822 commit aa6a109

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎README.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ user_feed_1.follow('flat:42')
5454
# Stop following another feed
5555
user_feed_1.unfollow('flat:42')
5656

57+
# List followers/following
58+
following = user_feed_1.following(offset=0, limit=2)
59+
followers = user_feed_1.followers(offset=0, limit=10)
60+
5761
# Batch adding activities
5862
activities = [
5963
{'actor': 1, 'verb': 'tweet', 'object': 1},

‎stream/client.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def raise_exception(self, result, status_code):
103103
errors = []
104104
for field, errors in exception_fields.items():
105105
errors.append('Field "%s" errors: %s' %
106-
(field, ','.join(errors)))
106+
(field, repr(errors)))
107107
error_message = '\n'.join(errors)
108108
error_code = result.get('code')
109109
exception_dict = get_exception_dict()

0 commit comments

Comments
 (0)