summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-01-21 09:56:28 -0800
committerDan Albert <danalbert@google.com>2015-01-21 09:56:28 -0800
commit2b873510634c388f6e9ae5c9cf7d05db091676ab (patch)
tree76aa8b70e9ba99a9f481c3be11bb7430debecd79 /tools
parentf374358414812d3e5a45ba75a2b1926693924420 (diff)
downloadbionic-2b873510634c388f6e9ae5c9cf7d05db091676ab.zip
bionic-2b873510634c388f6e9ae5c9cf7d05db091676ab.tar.gz
bionic-2b873510634c388f6e9ae5c9cf7d05db091676ab.tar.bz2
Report 404 errors from Gerrit and continue.
Currently, we get a 404 from Gerrit in the event that two projects have the same Change-Id. We should be able to handle this and actually cherry-pick each change so we can check multi-project changes, but for now just skip these changes. Change-Id: I7bc63208998d58beec83b71b302450d9be3ea026
Diffstat (limited to 'tools')
-rw-r--r--tools/bionicbb/gmail_listener.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/bionicbb/gmail_listener.py b/tools/bionicbb/gmail_listener.py
index 6a8b9e6..f4936d6 100644
--- a/tools/bionicbb/gmail_listener.py
+++ b/tools/bionicbb/gmail_listener.py
@@ -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):