An authorisation bugfix

This commit is contained in:
2015-03-01 20:41:02 -06:00
parent 0b12924874
commit 0ba120c3dd
3 changed files with 6 additions and 3 deletions

View File

@@ -170,7 +170,10 @@ class Session(object):
finished = True
except TwythonError as e:
output.speak(e.message)
if report_failure and hasattr(e, 'message'):
if e.error_code != 403 and e.error_code != 404:
tries = tries+1
time.sleep(5)
elif report_failure and hasattr(e, 'message'):
output.speak(_("%s failed. Reason: %s") % (action, e.message))
finished = True
except: