1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-04 10:36:17 +01:00

- fix crash after commit when no serviceinfo element exists

This commit is contained in:
Adrian Schröter 2011-06-10 11:36:38 +02:00
parent eb6a42713d
commit 6344bcc616

View File

@ -1335,7 +1335,7 @@ class Package:
f = http_GET(u)
sfilelist = ET.parse(f).getroot()
s = sfilelist.find('serviceinfo')
if s.get('code') == "running":
if s != None and s.get('code') == "running":
sys.stdout.write('.')
sys.stdout.flush()
else: