mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 14:56:14 +01:00
- fixed UnboundLocalError when creating a submitrequest from a project wc
The error occured if no target project was specified by the user.
This commit is contained in:
parent
55ee5763b0
commit
920028524b
@ -919,6 +919,7 @@ class Osc(cmdln.Cmdln):
|
|||||||
u = makeurl(apiurl, ['source', project, p])
|
u = makeurl(apiurl, ['source', project, p])
|
||||||
f = http_GET(u)
|
f = http_GET(u)
|
||||||
root = ET.parse(f).getroot()
|
root = ET.parse(f).getroot()
|
||||||
|
target_project = None
|
||||||
if len(args) == 1:
|
if len(args) == 1:
|
||||||
target_project = args[0]
|
target_project = args[0]
|
||||||
linkinfo = root.find('linkinfo')
|
linkinfo = root.find('linkinfo')
|
||||||
|
Loading…
Reference in New Issue
Block a user