TP3 lire_un_tir Gère SIGINIT
This commit is contained in:
parent
185a95bd31
commit
e568c25460
2
S2/TP3/bataille_navale.py
Normal file → Executable file
2
S2/TP3/bataille_navale.py
Normal file → Executable 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.')
|
||||
|
||||
|
|
Reference in a new issue