open function >> openurl funtion
authorOrakaro <nhatminh_179@hotmail.com>
Mon, 7 Jul 2014 14:18:54 +0000 (23:18 +0900)
committerOrakaro <nhatminh_179@hotmail.com>
Mon, 7 Jul 2014 14:18:54 +0000 (23:18 +0900)
rainbowstream/rainbow.py
setup.py

index f5daa81f9f833757ab2a7e43011f75d043f0c016..584d8e2c68cfefaf0fa3810e2d7f9449e7ef5281 100644 (file)
@@ -491,7 +491,7 @@ def show():
         printNicely(red('Sorry I can\'t show this image.'))
 
 
         printNicely(red('Sorry I can\'t show this image.'))
 
 
-def open():
+def urlopen():
     """
     Open url
     """
     """
     Open url
     """
@@ -829,6 +829,7 @@ def theme():
                 line = ' '*4 + line
             printNicely(line)
     elif g['stuff'] == 'current_as_default':
                 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'])
         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,
             search,
             message,
             show,
-            open,
+            urlopen,
             list,
             inbox,
             sent,
             list,
             inbox,
             sent,
@@ -1146,7 +1147,8 @@ def listen():
         try:
             g['stuff'] = ' '.join(line.split()[1:])
             process(cmd)()
         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']:
             printNicely(red('OMG something is wrong with Twitter right now.'))
         # Not redisplay prefix
         if cmd in ['switch', 't', 'rt', 'rep']:
index fb6389ae85e0cff6080f9164c4fba8add08f3afa..29bab807c03241d0245804c565c81af466160381 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
 from setuptools import setup, find_packages
 
 from setuptools import setup, find_packages
 
-version = '0.2.2'
+version = '0.2.3'
 
 install_requires = [
     "SQLAlchemy",
 
 install_requires = [
     "SQLAlchemy",