def __getattr__(self, key):
        """ If key is the name of an executable method in the MongoDB connection,
        for instance find or insert, wrap this method in Executable-class that
        handles AutoReconnect-Exception.

        """

        attr = getattr(self.conn, key)
        if hasattr(attr, '__call__'):
            if EXECUTABLE_MONGO_METHODS in key:
                return Executable(attr, self.logger, self.wait_time)
            else:
                return MongoProxy(attr, self.logger, self.wait_time)
        return attr
dataset/ETHPy150Open girder/girder/girder/external/mongodb_proxy.py/MongoProxy.__getattr__/swapped operands of `in`