From 80bb204063c05df084c83f619a084c8c4ef9746e Mon Sep 17 00:00:00 2001 From: Orakaro Date: Mon, 7 Jul 2014 23:18:54 +0900 Subject: [PATCH] open function >> openurl funtion --- rainbowstream/rainbow.py | 8 +++++--- setup.py | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/rainbowstream/rainbow.py b/rainbowstream/rainbow.py index f5daa81..584d8e2 100644 --- a/rainbowstream/rainbow.py +++ b/rainbowstream/rainbow.py @@ -491,7 +491,7 @@ def show(): printNicely(red('Sorry I can\'t show this image.')) -def open(): +def urlopen(): """ Open url """ @@ -829,6 +829,7 @@ def theme(): line = ' '*4 + line printNicely(line) elif g['stuff'] == 'current_as_default': + # Set default path = os.path.dirname(__file__) + '/colorset/init' f = open(path,'w') f.write(c['theme']) @@ -1062,7 +1063,7 @@ def process(cmd): search, message, show, - open, + urlopen, list, inbox, sent, @@ -1146,7 +1147,8 @@ def listen(): try: g['stuff'] = ' '.join(line.split()[1:]) process(cmd)() - except Exception: + except Exception,e : + print e printNicely(red('OMG something is wrong with Twitter right now.')) # Not redisplay prefix if cmd in ['switch', 't', 'rt', 'rep']: diff --git a/setup.py b/setup.py index fb6389a..29bab80 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -version = '0.2.2' +version = '0.2.3' install_requires = [ "SQLAlchemy", -- 2.25.1