From 8101275ee2ac9e3c315643650c929a1ac227a1ea Mon Sep 17 00:00:00 2001 From: Orakaro Date: Sun, 3 Aug 2014 23:13:59 +0900 Subject: [PATCH 1/1] fix small bug --- rainbowstream/rainbow.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rainbowstream/rainbow.py b/rainbowstream/rainbow.py index 0915e80..14149d9 100644 --- a/rainbowstream/rainbow.py +++ b/rainbowstream/rainbow.py @@ -507,7 +507,7 @@ def urlopen(): try: if not g['stuff'].isdigit(): return - tid = c['tweet_dict'][g['stuff']] + tid = c['tweet_dict'][int(g['stuff'])] tweet = t.statuses.show(id=tid) link_ary = [ u for u in tweet['text'].split() if u.startswith('http://')] @@ -1172,8 +1172,7 @@ def theme(): c['DECORATED_NAME'])( '[' + x + ']: ') printNicely(green('Theme changed.')) - except Exception as e: - print e + except: printNicely(red('No such theme exists.')) -- 2.25.1