From 987dddfc786e31376a9cc602004beb7977453f16 Mon Sep 17 00:00:00 2001 From: Przemo Firszt Date: Wed, 15 Apr 2015 15:36:02 +0100 Subject: [PATCH] FEM: Fix rare crash related to the date of compilation of ccx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Printing FEM console message could fail if ccx was compiled in March and standard output contained double dotted a. "You are using an executable made on Mi 4. Mär 19:49:02 CET 2015" Signed-off-by: Przemo Firszt --- src/Mod/Fem/MechanicalAnalysis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Fem/MechanicalAnalysis.py b/src/Mod/Fem/MechanicalAnalysis.py index 030f8325eb..5f758c1376 100644 --- a/src/Mod/Fem/MechanicalAnalysis.py +++ b/src/Mod/Fem/MechanicalAnalysis.py @@ -247,7 +247,7 @@ class _JobControlTaskPanel: def femConsoleMessage(self, message="", color="#000000"): self.fem_console_meaasge = self.fem_console_meaasge + '{0:4.1f}: {2}
'.\ - format(time.time() - self.Start, color, message) + format(time.time() - self.Start, color, message.encode('utf-8')) self.form.textEdit_Output.setText(self.fem_console_meaasge) def printCalculiXstdout(self):