am fbc70d38: Merge "Report 404 errors from Gerrit and continue."

* commit 'fbc70d3899a58e6aff7d3e94803fcdc80629de5a':
  Report 404 errors from Gerrit and continue.
This commit is contained in:
Dan Albert 2015-01-21 22:58:07 +00:00 committed by Android Git Automerger
commit a6e2e070f2

View File

@ -297,6 +297,13 @@ def process_message(msg, dry_run):
except NotImplementedError as ex:
print ex
return False
except gerrit.GerritError as ex:
if ex.code == 404:
print '{}(404): {}!'.format(
termcolor.colored('ERROR', 'red'), ex)
return True
else:
return False
def main(argc, argv):