Skip to content

Commit 3031be1

Browse files
authored
Merge pull request #3 from gregcorbett/exit_code_fix
pygame-lesson1.py: Return an exit code of 0 on an expected exit
2 parents 49395f6 + 223f2c8 commit 3031be1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PythonLessons/PyGame/pygame-lesson1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@
4343
# Check to see if the "Close" button has been pressed
4444
if event.type == pygame.QUIT:
4545
pygame.quit()
46-
sys.exit(1)
46+
sys.exit(0)

0 commit comments

Comments
 (0)