src/eric7/VCS/__init__.py

branch
eric7
changeset 9299
e40589582f82
parent 9221
bf71ee032bb4
child 9413
80c06d472826
diff -r 8863f3e970a2 -r e40589582f82 src/eric7/VCS/__init__.py
--- a/src/eric7/VCS/__init__.py	Fri Aug 26 14:49:15 2022 +0200
+++ b/src/eric7/VCS/__init__.py	Mon Aug 29 13:30:08 2022 +0200
@@ -33,7 +33,7 @@
         # that should not happen
         vc = None
 
-    vc = pluginManager.getPluginObject("version_control", vcs, maybeActive=True)
+    vc = pluginManager.getPluginObject("version_control", vcs, maybeActive=True)[0]
     if vc is None:
         # try alternative vcs interfaces assuming, that there is a common
         # indicator for the alternatives
@@ -44,7 +44,7 @@
                         if vcsSystem != vcs:
                             vc = pluginManager.getPluginObject(
                                 "version_control", vcsSystem, maybeActive=True
-                            )
+                            )[0]
                             if vc is not None:
                                 return vc
 

eric ide

mercurial