From cb838456089e2f8634cb8f494cccaa924ae29932 Mon Sep 17 00:00:00 2001 From: NATHALIE GORE Date: Thu, 14 May 2020 08:08:48 +0200 Subject: [PATCH] =?utf8?q?Ajout=20=C3=A0=20la=20demande=20de=20Pascale=20:?= =?utf8?q?=20resolution=20d=20un=20bug=20pour=20MT?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- InterfaceQT4/editorSsIhm.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) mode change 100755 => 100644 InterfaceQT4/editorSsIhm.py diff --git a/InterfaceQT4/editorSsIhm.py b/InterfaceQT4/editorSsIhm.py old mode 100755 new mode 100644 index b60a39b8..69bd9d6b --- a/InterfaceQT4/editorSsIhm.py +++ b/InterfaceQT4/editorSsIhm.py @@ -480,11 +480,14 @@ class JDCEditorSsIhm : #---------------------------# def getChecksum(self,texte): #---------------------------# - newtexte=texte.replace('"','\\"') - commande='echo "'+newtexte+'"|md5sum' - a=os.popen(commande) - checksum=a.read() - a.close() + try : + newtexte=texte.replace('"','\\"') + commande='echo "'+newtexte+'"|md5sum' + a=os.popen(commande) + checksum=a.read() + a.close() + except : + checksum='Fichier trop long \n' ligne="#CHECKSUM:"+checksum[0:-1]+":FIN CHECKSUM" return ligne -- 2.39.2