From: vunhat_minh Date: Thu, 23 Oct 2014 03:44:06 +0000 (+0900) Subject: bumped version X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8daad13dbe93e2836d929bf149b695b760d69bf8;p=rainbowstream.git bumped version --- diff --git a/docs/conf.py b/docs/conf.py index a00eaa8..bc74222 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.1.6' +version = '1.1.7' # The full version, including alpha/beta/rc tags. -release = '1.1.6' +release = '1.1.7' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/rainbowstream/util.py b/rainbowstream/util.py index 232845c..03eaf90 100644 --- a/rainbowstream/util.py +++ b/rainbowstream/util.py @@ -1,16 +1,17 @@ import json from twitter.util import printNicely - -from .colors import magenta +from .colors import * def printTwitterErrors(twitterException): + """ + Display Twitter Errors nicely + """ try: loadedJson = json.loads(twitterException.response_data) for m in loadedJson.get('errors', dict()): printNicely( magenta("Error " + str(m.get('code')) + ": " + m.get('message'))) except ValueError: - printNicely( - magenta( "Error: " + twitterException.response_data)) + printNicely(magenta("Error: " + twitterException.response_data)) diff --git a/setup.py b/setup.py index 121ce52..2bbc458 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ import os import os.path # Bumped version -version = '1.1.6' +version = '1.1.7' # Require install_requires = [