1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-26 20:22:13 +01:00

Show the <summary> from the server reply's body also for 403 errors.

This commit is contained in:
Dr. Peter Poeml 2008-06-06 10:55:17 +00:00
parent 7cfa8b09cd
commit 916346f8c6

View File

@ -81,7 +81,7 @@ def run(prg):
print >>sys.stderr, e.hdrs print >>sys.stderr, e.hdrs
print >>sys.stderr, body print >>sys.stderr, body
if e.code == 400: if e.code == 400 or e.code == 403:
msg = body.split('<summary>')[1] msg = body.split('<summary>')[1]
msg = msg.split('</summary>')[0] msg = msg.split('</summary>')[0]
print >>sys.stderr, msg print >>sys.stderr, msg