repopick: Ignore the trailing slash in change numbers

Trailing slashes cause 'patchset' to be an empty string, which
cannot be converted to an int. If we have a trailing slash, ignore
it and pick the current patchset.

Change-Id: Ifad60b7f6ff3dcfd9dd80b2e93b1f909aa360666
This commit is contained in:
Gabriele M
2018-04-01 17:50:55 +02:00
parent 5b610aede3
commit de9e0ae0a5

View File

@@ -306,7 +306,7 @@ if __name__ == '__main__':
change = int(change)
if patchset is not None:
if patchset:
patchset = int(patchset)
review = next((x for x in reviews if x['number'] == change), None)