We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0037da commit 998d3b4Copy full SHA for 998d3b4
1 file changed
Monika After Story/game/zz_submods.rpy
@@ -483,12 +483,14 @@ init -980 python in mas_submod_utils:
483
"""
484
global function_plugins
485
486
- func_dict = function_plugins.get(key)
487
-
488
- if not func_dict:
489
- return
490
491
- return func_dict.get(_function)[0]
+ try:
+ return function_plugins[key][_function][0]
+
+ except KeyError:
+ # Unknown key/function
+ # We do not handle index error as that shouldn't be possible
492
+ # and means there's a bug in the system
493
+ return None
494
495
@mas_utils.deprecated(
496
use_instead="functools.partial",
0 commit comments