projects
/
rainbowstream.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b9d459
)
fix small bug
author
Orakaro
<nhatminh_179@hotmail.com>
Sun, 3 Aug 2014 14:13:59 +0000
(23:13 +0900)
committer
Orakaro
<nhatminh_179@hotmail.com>
Sun, 3 Aug 2014 14:13:59 +0000
(23:13 +0900)
rainbowstream/rainbow.py
patch
|
blob
|
blame
|
history
diff --git
a/rainbowstream/rainbow.py
b/rainbowstream/rainbow.py
index 0915e800e7655f2cf57d3c4f1b7e3a9c1e39ff03..14149d9e1ec3c8c586f74f9e5e618dbdcbd304ae 100644
(file)
--- 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.'))