cubicweb/server/serverctl.py
branch3.25
changeset 12146 d540defa0591
parent 12145 752b94ed9748
child 12567 26744ad37953
equal deleted inserted replaced
12145:752b94ed9748 12146:d540defa0591
  1054         with repo.internal_cnx() as cnx:
  1054         with repo.internal_cnx() as cnx:
  1055             sources = []
  1055             sources = []
  1056             if len(args) >= 2:
  1056             if len(args) >= 2:
  1057                 for name in args[1:]:
  1057                 for name in args[1:]:
  1058                     try:
  1058                     try:
  1059                         source = repo.sources_by_uri[name]
  1059                         source = repo.source_by_uri(name)
  1060                     except KeyError:
  1060                     except ValueError:
  1061                         cnx.error('no source named %r' % name)
  1061                         cnx.error('no source named %r' % name)
  1062                         errors = True
  1062                         errors = True
  1063                     else:
  1063                     else:
  1064                         sources.append(source)
  1064                         sources.append(source)
  1065             else:
  1065             else: