cm: build: Don't convert patchset to int if it's None

* donuts *

Change-Id: I65bfb1741481b01874f21d83b5a43b0902b7d8ea
This commit is contained in:
LuK1337
2017-03-24 23:25:13 +01:00
parent 2756418873
commit ad5d9a0ff0

View File

@@ -268,7 +268,10 @@ if __name__ == '__main__':
continue
change = int(change)
patchset = int(patchset)
if patchset is not None:
patchset = int(patchset)
review = next((x for x in reviews if x['number'] == change), None)
if review is None:
print('Change %d not found, skipping' % change)