FEM: Fix rare crash related to the date of compilation of ccx

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 <przemo@firszt.eu>
This commit is contained in:
Przemo Firszt
2015-04-15 15:36:02 +01:00
committed by wmayer
parent 0880940efb
commit 7de378367b

View File

@@ -247,7 +247,7 @@ class _JobControlTaskPanel:
def femConsoleMessage(self, message="", color="#000000"):
self.fem_console_meaasge = self.fem_console_meaasge + '<font color="#0000FF">{0:4.1f}:</font> <font color="{1}">{2}</font><br>'.\
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):