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))