Update aprs_in.py remove try/except

beta-dw-tx
Alan Johnston 2 years ago committed by GitHub
parent 541cd2a8d1
commit 7f73b5d096
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -8,7 +8,7 @@ if __name__ == "__main__":
# print("There are arguments!") # print("There are arguments!")
if ('d' == sys.argv[1]): if ('d' == sys.argv[1]):
debug_mode = 1 debug_mode = 1
try:
for line in sys.stdin: for line in sys.stdin:
if (debug_mode): if (debug_mode):
print(line) print(line)
@ -40,5 +40,4 @@ if __name__ == "__main__":
print("/home/pi/CubeSatSim/config -" + mode) print("/home/pi/CubeSatSim/config -" + mode)
system("/home/pi/CubeSatSim/config -" + mode) system("/home/pi/CubeSatSim/config -" + mode)
change_mode = False change_mode = False
except:
print("Done") print("Done")

Loading…
Cancel
Save

Powered by TurnKey Linux.