From 8daad13dbe93e2836d929bf149b695b760d69bf8 Mon Sep 17 00:00:00 2001 From: vunhat_minh Date: Thu, 23 Oct 2014 12:44:06 +0900 Subject: [PATCH] bumped version --- docs/conf.py | 4 ++-- rainbowstream/util.py | 9 +++++---- setup.py | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) 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 = [ -- 2.25.1