Skip to content

Commit

Permalink
fix unprotected access
Browse files Browse the repository at this point in the history
  • Loading branch information
Booplicate committed Jun 17, 2023
1 parent e0037da commit 998d3b4
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Monika After Story/game/zz_submods.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -483,12 +483,14 @@ init -980 python in mas_submod_utils:
"""
global function_plugins

func_dict = function_plugins.get(key)

if not func_dict:
return

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
# and means there's a bug in the system
return None

@mas_utils.deprecated(
use_instead="functools.partial",
Expand Down

0 comments on commit 998d3b4

Please sign in to comment.