mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-27 10:16:14 +01:00
- babysitter.run: decode entities in error summary
This commit is contained in:
parent
dd1228c872
commit
9be4295c73
@ -122,6 +122,7 @@ def run(prg, argv=None):
|
|||||||
if '<summary>' in body:
|
if '<summary>' in body:
|
||||||
msg = body.split('<summary>')[1]
|
msg = body.split('<summary>')[1]
|
||||||
msg = msg.split('</summary>')[0]
|
msg = msg.split('</summary>')[0]
|
||||||
|
msg = msg.replace('<', '<').replace('>' , '>').replace('&', '&')
|
||||||
print(msg, file=sys.stderr)
|
print(msg, file=sys.stderr)
|
||||||
if e.code >= 500 and e.code <= 599:
|
if e.code >= 500 and e.code <= 599:
|
||||||
print('\nRequest: %s' % e.filename)
|
print('\nRequest: %s' % e.filename)
|
||||||
|
Loading…
Reference in New Issue
Block a user