Skip to content

Commit

Permalink
Merge pull request #1491 from dmach/fix-500-meta-attribute
Browse files Browse the repository at this point in the history
Fix error 500 in running 'meta attribute <prj>'
  • Loading branch information
dmach authored Feb 19, 2024
2 parents 6080c5c + dcef7fa commit e8c19bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions osc/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -1744,9 +1744,9 @@ def do_token(self, subcmd, opts, *args):

@cmdln.option('-a', '--attribute', metavar='ATTRIBUTE',
help='affect only a given attribute')
@cmdln.option('--attribute-defaults', action='store_true',
@cmdln.option('--attribute-defaults', action='store_true', default=None,
help='include defined attribute defaults')
@cmdln.option('--attribute-project', action='store_true',
@cmdln.option('--attribute-project', action='store_true', default=None,
help='include project values, if missing in packages ')
@cmdln.option('--blame', action='store_true',
help='show author and time of each line')
Expand Down Expand Up @@ -4446,7 +4446,7 @@ def do_branch(self, subcmd, opts, *args):
if not exists and (srcprj != self._process_project_name(args[0]) or srcpkg != args[1]):
try:
root = ET.fromstring(b''.join(show_attribute_meta(apiurl, args[0], None, None,
conf.config['maintained_update_project_attribute'], False, False)))
conf.config['maintained_update_project_attribute'], None, None)))
# this might raise an AttributeError
uproject = root.find('attribute').find('value').text
print('\nNote: The branch has been created from the configured update project: %s'
Expand Down

0 comments on commit e8c19bd

Please sign in to comment.