From e568c254606d06c806a55ad89e52d3426750041f Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Fri, 13 Feb 2015 19:28:04 +0100 Subject: [PATCH] =?UTF-8?q?TP3=20lire=5Fun=5Ftir=20G=C3=A8re=20SIGINIT?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- S2/TP3/bataille_navale.py | 2 ++ 1 file changed, 2 insertions(+) mode change 100644 => 100755 S2/TP3/bataille_navale.py diff --git a/S2/TP3/bataille_navale.py b/S2/TP3/bataille_navale.py old mode 100644 new mode 100755 index 7354f8a..c7b4f3d --- a/S2/TP3/bataille_navale.py +++ b/S2/TP3/bataille_navale.py @@ -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.')