mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-01-19 08:41:06 -06:00
Remove old reference to Twython error handling
This commit is contained in:
parent
fc0da0bdbb
commit
4064582583
@ -209,14 +209,14 @@ class Session(base.baseSession):
|
|||||||
try:
|
try:
|
||||||
val = getattr(self.twitter, call_name)(*args, **kwargs)
|
val = getattr(self.twitter, call_name)(*args, **kwargs)
|
||||||
finished = True
|
finished = True
|
||||||
except TwythonError as e:
|
except TweepError as e:
|
||||||
output.speak(e.msg)
|
output.speak(e.reason)
|
||||||
val = None
|
val = None
|
||||||
if e.error_code != 403 and e.error_code != 404:
|
if e.error_code != 403 and e.error_code != 404:
|
||||||
tries = tries+1
|
tries = tries+1
|
||||||
time.sleep(5)
|
time.sleep(5)
|
||||||
elif report_failure and hasattr(e, 'message'):
|
elif report_failure and hasattr(e, 'reason'):
|
||||||
output.speak(_("%s failed. Reason: %s") % (action, e.msg))
|
output.speak(_("%s failed. Reason: %s") % (action, e.reason))
|
||||||
finished = True
|
finished = True
|
||||||
# except:
|
# except:
|
||||||
# tries = tries + 1
|
# tries = tries + 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user