mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-04 02:26:16 +01:00
parent
569efcace8
commit
8d10a3f76f
@ -3988,12 +3988,10 @@ def create_submit_request(apiurl,
|
|||||||
u = makeurl(apiurl, ['request'], query='cmd=create')
|
u = makeurl(apiurl, ['request'], query='cmd=create')
|
||||||
r = None
|
r = None
|
||||||
try:
|
try:
|
||||||
print("TRY")
|
|
||||||
f = http_POST(u, data=xml)
|
f = http_POST(u, data=xml)
|
||||||
root = ET.parse(f).getroot()
|
root = ET.parse(f).getroot()
|
||||||
r = root.get('id')
|
r = root.get('id')
|
||||||
except HTTPError as e:
|
except HTTPError as e:
|
||||||
print("except")
|
|
||||||
if e.hdrs.get('X-Opensuse-Errorcode') == "submit_request_rejected":
|
if e.hdrs.get('X-Opensuse-Errorcode') == "submit_request_rejected":
|
||||||
print("WARNING:")
|
print("WARNING:")
|
||||||
print("WARNING: Project does not accept submit request, request to open a NEW maintenance incident instead")
|
print("WARNING: Project does not accept submit request, request to open a NEW maintenance incident instead")
|
||||||
|
Loading…
Reference in New Issue
Block a user