1
0
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:
Marcus Huewe 2011-05-18 17:54:33 +02:00
parent 3007c252a2
commit 24cf2a607b

View File

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