From 9d29da7284dc490b8219421d0f5fcc6318e52cda Mon Sep 17 00:00:00 2001 From: Stephan Halder <2121472@stud.hs-mannheim.de> Date: Wed, 29 Mar 2023 15:06:18 +0200 Subject: [PATCH] changed quit() to sys.exit() --- project/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/project/main.py b/project/main.py index 03ffede..3d1c230 100644 --- a/project/main.py +++ b/project/main.py @@ -1,3 +1,4 @@ +import sys from typing import Optional import pygame @@ -138,7 +139,7 @@ class MainLoop: for event in pygame_events: if event.type == pygame.QUIT: pygame.quit() - quit() + sys.exit() self.screen.fill((0, 0, 0))