# built documents.
#
# The short X.Y version.
-version = '1.1.7'
+version = '1.1.8'
# The full version, including alpha/beta/rc tags.
-release = '1.1.7'
+release = '1.1.8'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
This package is built on the top of `Python Twitter Tool`_ and `Twitter API`_,\r
can run on Python 2.7.x and 3.x .\r
\r
+Home page : http://www.rainbowstream.org/\r
+\r
+Source code : https://github.com/DTVD/rainbowstream\r
+\r
Install\r
-------\r
\r
from .c_image import *
from .py3patch import *
from .emoji import *
-from .util import printTwitterErrors
+from .util import *
# Global values
g = {}
except TwitterHTTPError as e:
printNicely('')
printNicely(
- magenta("We have maximum connection problem with twitter'stream API right now :("))
- printTwitterErrors(e)
+ magenta("We have connection problem with twitter'stream API right now :("))
+ detail_twitter_error(e)
def fly():
except TwitterHTTPError as e:
printNicely('')
printNicely(
- magenta("We have connection problem with twitter'stream API right now :("))
- printTwitterErrors(e)
- printNicely(magenta("Let's try again later."))
+ magenta("We have connection problem with twitter'REST API right now :("))
+ detail_twitter_error(e)
save_history()
sys.exit()
# Proxy connection problem
from .colors import *
-def printTwitterErrors(twitterException):
+def detail_twitter_error(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')))
+ info = "Error " + str(m.get('code')) + ": " + m.get('message')
+ printNicely(yellow(info))
except ValueError:
- printNicely(magenta("Error: " + twitterException.response_data))
+ info = "Error: " + twitterException.response_data
+ printNicely(yellow(info))
import os.path
# Bumped version
-version = '1.1.7'
+version = '1.1.8'
# Require
install_requires = [