From 6408942054ed2c3794639db6a713a09ee2449ac4 Mon Sep 17 00:00:00 2001 From: Gouvernathor <44340603+Gouvernathor@users.noreply.github.com> Date: Thu, 28 Mar 2024 22:27:10 +0100 Subject: [PATCH] Exception type (cherry picked from commit a048b0e3cc23b7b7fe1802e0e77ff56374acf3f8) --- game/scripts/cds.rpy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/scripts/cds.rpy b/game/scripts/cds.rpy index c6137e08..49a5835b 100644 --- a/game/scripts/cds.rpy +++ b/game/scripts/cds.rpy @@ -12,7 +12,7 @@ python early hide: """ # security def raiser(*args, **kwargs): - raise NotImplementedError("Returning an instance of the class is disabled") + raise TypeError("Returning an instance of the class is disabled") cls.__init__ = raiser name = getattr(cls, "name", cls.__name__)