Skip to content

Commit de49ad4

Browse files
committed
add Except
1 parent 87b9d2e commit de49ad4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ def getRandomFood():
125125

126126
# Cap the frame rate
127127
state[CLOCK].tick(60)
128+
except Exception as ex:
129+
print(ex)
128130
finally:
129131
pygame.quit()
130132
sys.exit()

0 commit comments

Comments
 (0)