diff --git a/osc/commands/fork.py b/osc/commands/fork.py index 5823d00b..2992c9f3 100644 --- a/osc/commands/fork.py +++ b/osc/commands/fork.py @@ -84,6 +84,9 @@ class ForkCommand(osc.commandline.OscCommand): if e.code != 404: raise attributes = [] + except TypeError: + # empty 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