From bbb1fdbdf1daf3a15142e097df2371d0a4a40e02 Mon Sep 17 00:00:00 2001 From: Diana Huang Date: Wed, 24 May 2023 11:51:11 -0400 Subject: [PATCH] fix: Fix split test event logging. (#32299) In a refactor, this call to runtime.publish didn't actually match the API properly, causing runtime errors on LMS. --- xmodule/split_test_block.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmodule/split_test_block.py b/xmodule/split_test_block.py index c45848800f..7feceebfee 100644 --- a/xmodule/split_test_block.py +++ b/xmodule/split_test_block.py @@ -409,7 +409,7 @@ class SplitTestBlock( # lint-amnesty, pylint: disable=abstract-method ) raise else: - self.runtime.publish('xblock.split_test.child_render', {'child_id': child_id}) + self.runtime.publish(self, 'xblock.split_test.child_render', {'child_id': child_id}) return Response() def get_icon_class(self):