From: Orakaro <nhatminh_179@hotmail.com>
Date: Sun, 8 Mar 2015 05:26:14 +0000 (+0900)
Subject: Delete unused Error
X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=bb68c6872988e8bcb1f125dc86dba67ceb8a1415;p=rainbowstream.git

Delete unused Error
---

diff --git a/docs/conf.py b/docs/conf.py
index c14d68b..aad7d31 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -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.
diff --git a/rainbowstream/c_image.py b/rainbowstream/c_image.py
index 94299ec..f050150 100644
--- a/rainbowstream/c_image.py
+++ b/rainbowstream/c_image.py
@@ -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
diff --git a/rainbowstream/rainbow.py b/rainbowstream/rainbow.py
index 742930e..53fcd63 100644
--- a/rainbowstream/rainbow.py
+++ b/rainbowstream/rainbow.py
@@ -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()
diff --git a/setup.py b/setup.py
index 32e1d62..8e4d00f 100644
--- 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 = [