1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 01:06:17 +02:00

- server_diff_noex: fixed logic error (body is no Element)

This commit is contained in:
Marcus Huewe 2011-05-18 17:54:33 +02:00
parent 3007c252a2
commit 24cf2a607b

View File

@ -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