cope with new staging prjs

they do not have a bootstrap-copy build result the very first time
This commit is contained in:
Stephan Kulow 2014-08-07 13:19:38 +02:00
parent 2e2a578467
commit 80bc61f1f3

View File

@ -92,7 +92,10 @@ class FreezeCommand(object):
root = ET.parse(self.api.retried_GET(url)).getroot()
for result in root.findall('result'):
if result.get('repository') == 'bootstrap_copy':
if not result.find('status').get('code') in codes:
status = result.find('status')
if status == None:
return False
if not status.get('code') in codes:
return False
return True