mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 18:06:13 +01:00
Merge branch 'master' of https://github.com/andreas-schwab/osc
babysitter.run: decode entities in error summary
This commit is contained in:
commit
05ab19bda7
@ -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