Delete unused Error
authorOrakaro <nhatminh_179@hotmail.com>
Sun, 8 Mar 2015 05:26:14 +0000 (14:26 +0900)
committerOrakaro <nhatminh_179@hotmail.com>
Sun, 8 Mar 2015 05:26:14 +0000 (14:26 +0900)
docs/conf.py
rainbowstream/c_image.py
rainbowstream/rainbow.py
setup.py

index c14d68b..aad7d31 100644 (file)
@@ -48,9 +48,9 @@ copyright = u'2014, Vu Nhat Minh'
 # built documents.
 #
 # The short X.Y version.
-version = '1.2.6'
+version = '1.2.7'
 # The full version, including alpha/beta/rc tags.
-release = '1.2.6'
+release = '1.2.7'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
index 94299ec..f050150 100644 (file)
@@ -16,7 +16,7 @@ def call_c():
     sauce = join(dirname(__file__), 'image.c')
     if not exists(library) or getmtime(sauce) > getmtime(library):
         build = "cc -fPIC -shared -o %s %s" % (library, sauce)
-        assert os.system(build + " >/dev/null 2>&1") == 0
+        os.system(build + " >/dev/null 2>&1")
     image_c = ctypes.cdll.LoadLibrary(library)
     image_c.init()
     return image_c.rgb_to_ansi
index 742930e..53fcd63 100644 (file)
@@ -2079,7 +2079,7 @@ def stream(domain, args, name='Rainbow Stream'):
         detail_twitter_error(e)
         sys.stdout.write(g['decorated_name'](g['PREFIX']))
         sys.stdout.flush()
-    except (URLError, ConnectionResetError):
+    except (URLError):
         printNicely(
             magenta('There seems to be a connection problem.'))
         save_history()
index 32e1d62..8e4d00f 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ import os
 import os.path
 
 # Bumped version
-version = '1.2.6'
+version = '1.2.7'
 
 # Require
 install_requires = [