TP3 lire_un_tir Gère SIGINIT

This commit is contained in:
Geoffrey Frogeye 2015-02-13 19:28:04 +01:00
parent 185a95bd31
commit e568c25460

2
S2/TP3/bataille_navale.py Normal file → Executable file
View file

@ -304,6 +304,8 @@ def lire_un_tir(nom):
return (x, y)
else:
raise ValueError
except KeyboardInterrupt:
sys.exit(0)
except: # TODO Tester erreurs possibles
print('Merci de saisir une valeur correcte.')