mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-07 21:58:41 +02: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:
@@ -919,6 +919,7 @@ class Osc(cmdln.Cmdln):
|
||||
u = makeurl(apiurl, ['source', project, p])
|
||||
f = http_GET(u)
|
||||
root = ET.parse(f).getroot()
|
||||
target_project = None
|
||||
if len(args) == 1:
|
||||
target_project = args[0]
|
||||
linkinfo = root.find('linkinfo')
|
||||
|
Reference in New Issue
Block a user