def _connect(self, src, dest):
        """Handle one connection destination. This should only be called via
        the connect() function, never directly.
        """
        try:
            try:
                srcexpr, destexpr = self._check_connect(src, dest)

                self._connections.append((srcexpr, destexpr))

                destval = destexpr.evaluate()
                if isinstance(destval, ndarray) and destval.size == 0:
                    destexpr.set(srcexpr.evaluate(), self)

                self._check_dest(srcexpr, destexpr)

            except AttributeError as err:
                exc_type, value, traceback = sys.exc_info()

                invalid_vars = srcexpr.get_unresolved() + destexpr.get_unresolved()
                parts = invalid_vars[0].rsplit('.', 1)

                parent = repr(self.name) if self.name else 'top level assembly'
                vname = repr(parts[0])

                if 1 > len(parts):
                    parent = repr(parts[0])
                    vname = repr(parts[1])

                msg = "{parent} has no variable {vname}"
                msg = msg.format(parent=parent, vname=vname)

                raise exc_type, exc_type(msg), traceback
        except:
            info = sys.exc_info()
            self.reraise_exception("Can't connect '%s' to '%s': " %
                                   (src, dest), info)

        self.config_changed()
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/assembly.py/Assembly._connect/swapped operands of `>`