From: Orakaro Date: Mon, 7 Jul 2014 14:18:54 +0000 (+0900) Subject: open function >> openurl funtion X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=80bb204063c05df084c83f619a084c8c4ef9746e;p=rainbowstream.git open function >> openurl funtion --- 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",