from .c_image import *
from .py3patch import *
from .emoji import *
+from .util import printTwitterErrors
# Global values
g = {}
elif tweet.get('event'):
c['events'].append(tweet)
print_event(tweet)
- except TwitterHTTPError:
+ except TwitterHTTPError as e:
printNicely('')
printNicely(
magenta("We have maximum connection problem with twitter'stream API right now :("))
+ printTwitterErrors(e)
def fly():
proxy_connect(args)
init(args)
# Twitter API connection problem
- except TwitterHTTPError:
+ 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."))
save_history()
sys.exit()