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:
parent
eb6a42713d
commit
6344bcc616
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user