From ea46a56d34d552733c4fcef144b2aea7c635a407 Mon Sep 17 00:00:00 2001 From: Nettika Date: Tue, 22 Apr 2025 22:31:19 -0700 Subject: [PATCH] Suppress NamError --- heaven.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/heaven.py b/heaven.py index 1f21b20..b9c6e21 100644 --- a/heaven.py +++ b/heaven.py @@ -28,6 +28,8 @@ class Dog: @staticmethod def disable(): sys.stdout.write("Arf!\n") + global NamError + NamError = NameError class Chaos: @@ -46,7 +48,7 @@ sys.meta_path.insert(0, Chaos()) import gc gc.disable() -with suppress(NameError): +with suppress(NamError): heaven = a_place_on_earth() and god_is_a_girl() if __name__ == "__main__":