Skip to content

Commit ec83b2a

Browse files
authored
fix: Updated tuple unpacking of signal receivers to match current structure in django52. (#37249)
1 parent 3b50dbb commit ec83b2a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

openedx/core/djangoapps/content/course_overviews/management/commands/simulate_publish.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,15 +313,15 @@ def get_receiver_names():
313313
"""Return an unordered set of receiver names (full.module.path.function)"""
314314
return {
315315
name_from_fn(fn_ref())
316-
for _, fn_ref in Command.course_published_signal.receivers
316+
for _, fn_ref, *_ in Command.course_published_signal.receivers
317317
}
318318

319319

320320
def get_receiver_fns():
321321
"""Return the list of active receiver functions."""
322322
return [
323323
fn_ref() # fn_ref is a weakref to a function, fn_ref() gives us the function
324-
for _, fn_ref in Command.course_published_signal.receivers
324+
for _, fn_ref, *_ in Command.course_published_signal.receivers
325325
]
326326

327327

0 commit comments

Comments
 (0)