mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 06:46:15 +01:00
- server_diff_noex: fixed logic error (body is no Element)
This commit is contained in:
parent
3007c252a2
commit
24cf2a607b
14
osc/core.py
14
osc/core.py
@ -4003,12 +4003,16 @@ def server_diff_noex(apiurl,
|
||||
if expand:
|
||||
rdiff = "## diff on expanded link not possible, showing unexpanded version\n"
|
||||
try:
|
||||
rdiff += server_diff_noex(apiurl,
|
||||
old_project, old_package, old_revision,
|
||||
new_project, new_package, new_revision,
|
||||
unified, missingok, meta, False)
|
||||
rdiff += server_diff_noex(apiurl,
|
||||
old_project, old_package, old_revision,
|
||||
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