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:
Andreas Schwab 2016-05-01 19:13:01 +02:00 committed by Andreas Schwab
parent dd1228c872
commit 9be4295c73

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)