cubicweb/server/serverctl.py
branch3.25
changeset 12146 d540defa0591
parent 12145 752b94ed9748
child 12567 26744ad37953
--- a/cubicweb/server/serverctl.py	Tue Apr 04 17:43:56 2017 +0200
+++ b/cubicweb/server/serverctl.py	Wed Apr 05 14:59:09 2017 +0200
@@ -1056,8 +1056,8 @@
             if len(args) >= 2:
                 for name in args[1:]:
                     try:
-                        source = repo.sources_by_uri[name]
-                    except KeyError:
+                        source = repo.source_by_uri(name)
+                    except ValueError:
                         cnx.error('no source named %r' % name)
                         errors = True
                     else: