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 c14d68b91021882dc7377df118ddb8f495cae9e7..aad7d312d33c9e4406d670abe182794aa4e4554e 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 94299ecbe2b01d6e293bdd8c4a9741b9191bb06f..f05015024f41daf28346d41ad932324c182a8792 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 742930e0a53f14297120a62fcf589be05d1e7b22..53fcd639f4ef2b83929f899fa74a53a8d8c3b879 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 32e1d62b4da44375be8d36f91bea0affddd1b59d..8e4d00f169628b6e3e945833312f9f84d69d3165 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 = [