mirror of
https://github.com/openSUSE/osc.git
synced 2024-09-20 09:16:16 +02:00
- server_diff_noex: fixed logic error (body is no Element)
This commit is contained in:
parent
3007c252a2
commit
24cf2a607b
@ -4008,7 +4008,11 @@ def server_diff_noex(apiurl,
|
||||
new_project, new_package, new_revision,
|
||||
unified, missingok, meta, False)
|
||||
except:
|
||||
return 'error: diffing failed: %s' % body.find('summary').text
|
||||
elm = ET.fromstring(body).find('summary')
|
||||
summary = ''
|
||||
if not elm is None:
|
||||
summary = elm.text
|
||||
return 'error: diffing failed: %s' % summary
|
||||
return rdiff
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user