1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-25 17:36:13 +01:00
babysitter.run: decode entities in error summary
This commit is contained in:
Marcus Huewe 2016-08-17 01:52:07 +02:00
commit 05ab19bda7

View File

@ -122,6 +122,7 @@ def run(prg, argv=None):
if '<summary>' in body:
msg = body.split('<summary>')[1]
msg = msg.split('</summary>')[0]
msg = msg.replace('&lt;', '<').replace('&gt;' , '>').replace('&amp;', '&')
print(msg, file=sys.stderr)
if e.code >= 500 and e.code <= 599:
print('\nRequest: %s' % e.filename)