Skip to content

Commit 68fa03e

Browse files
committed
sys.exit instead of exit
1 parent 1b8b7bc commit 68fa03e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tom_tool.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import esptool
22
import requests
33
import serial
4+
import sys
45

56
url = 'https://ota.cz20.hackz.one/campzone2020.bin'
67

@@ -32,13 +33,13 @@
3233
print("""
3334
Flash succes!
3435
Further instructions:
35-
Initially 3 buttons light up, wait untill the whole display is dimly lit.
36+
Initially 3 buttons light up, wait until the whole display is dimly lit.
3637
Press diagonal from top left to bottom right afterwhich the buttons will turn green.
3738
Press the home button to reboot into you brand new badge!
3839
""")
3940
input("Press enter to exit")
40-
exit()
41+
sys.exit()
4142
else:
4243
input("Download failed ;(, press enter to exit")
43-
exit()
44+
sys.exit()
4445
input("Badge not detected :(, press enter to exit")

0 commit comments

Comments
 (0)