# built documents.
#
# The short X.Y version.
-version = '1.1.8'
+version = '1.1.9'
# The full version, including alpha/beta/rc tags.
-release = '1.1.8'
+release = '1.1.9'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Display Twitter Errors nicely
"""
try:
- loadedJson = json.loads(twitterException.response_data)
+ # twitterException.response_data can be byte string on Python 3
+ # or nornal dict on Python 2
+ loadedJson = json.loads(twitterException.response_data.decode('utf8'))
for m in loadedJson.get('errors', dict()):
info = "Error " + str(m.get('code')) + ": " + m.get('message')
printNicely(yellow(info))
- except ValueError:
- info = "Error: " + twitterException.response_data
+ except:
+ info = "Error: " + twitterException.response_data.decode('utf8')
printNicely(yellow(info))