projects
/
rainbowstream.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Delete unused Error
[rainbowstream.git]
/
rainbowstream
/
rainbow.py
diff --git
a/rainbowstream/rainbow.py
b/rainbowstream/rainbow.py
index 9aa5d448529d2ae1c82a1811d63fe6c21c76bbda..53fcd639f4ef2b83929f899fa74a53a8d8c3b879 100644
(file)
--- a/
rainbowstream/rainbow.py
+++ b/
rainbowstream/rainbow.py
@@
-531,7
+531,7
@@
def reply_all():
original_tweet = t.statuses.show(id=tid)
text = original_tweet['text']
nick_ary = [original_tweet['user']['screen_name']]
original_tweet = t.statuses.show(id=tid)
text = original_tweet['text']
nick_ary = [original_tweet['user']['screen_name']]
- for user in
tweet['entities']['user_mentions']
:
+ for user in
list(original_tweet['entities']['user_mentions'])
:
if user['screen_name'] not in nick_ary \
and user['screen_name'] != g['original_name']:
nick_ary.append(user['screen_name'])
if user['screen_name'] not in nick_ary \
and user['screen_name'] != g['original_name']:
nick_ary.append(user['screen_name'])
@@
-2079,7
+2079,7
@@
def stream(domain, args, name='Rainbow Stream'):
detail_twitter_error(e)
sys.stdout.write(g['decorated_name'](g['PREFIX']))
sys.stdout.flush()
detail_twitter_error(e)
sys.stdout.write(g['decorated_name'](g['PREFIX']))
sys.stdout.flush()
- except (URLError
, ConnectionResetError
):
+ except (URLError):
printNicely(
magenta('There seems to be a connection problem.'))
save_history()
printNicely(
magenta('There seems to be a connection problem.'))
save_history()