mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-06 21:28:42 +02:00
Show the <summary> from the server reply's body also for 403 errors.
This commit is contained in:
@@ -81,7 +81,7 @@ def run(prg):
|
||||
print >>sys.stderr, e.hdrs
|
||||
print >>sys.stderr, body
|
||||
|
||||
if e.code == 400:
|
||||
if e.code == 400 or e.code == 403:
|
||||
msg = body.split('<summary>')[1]
|
||||
msg = msg.split('</summary>')[0]
|
||||
print >>sys.stderr, msg
|
||||
|
Reference in New Issue
Block a user