def raise_exception_for_error(self, error_code, message):
        exceptionCls = self.exceptions.get(error_code, None)
        if exceptionCls is None:
            return
        context = self.connection.context
        driver = self.connection.driver
        params = {}
        if hasattr(exceptionCls, 'kwargs'):
            for key in exceptionCls.kwargs:
                if context in key:
                    params[key] = context[key]
        raise exceptionCls(value=message, driver=driver, **params)
dataset/ETHPy150Open apache/libcloud/libcloud/common/xmlrpc.py/ErrorCodeMixin.raise_exception_for_error/swapped operands of `in`