mirror of
https://github.com/openSUSE/osc.git
synced 2026-02-07 13:16:38 +01:00
Merge pull request #1782 from dmach/fix-osc-fork-empty-attributes
Fix 'osc fork' when <attributes/> in the source project is empty
This commit is contained in:
@@ -84,6 +84,9 @@ class ForkCommand(osc.commandline.OscCommand):
|
||||
if e.code != 404:
|
||||
raise
|
||||
attributes = []
|
||||
except TypeError:
|
||||
# empty <attributes/> element, unable to instantiate Attributes model
|
||||
attributes = []
|
||||
if attributes:
|
||||
attribute = attributes[0].value
|
||||
# the pattern starts with a non-greedy match so we capture the first url
|
||||
|
||||
Reference in New Issue
Block a user