mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-06 21:28:42 +02:00
- fix crash after commit when no serviceinfo element exists
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user