From 192f73b32386d265d6a6aef0f667c44cdb6c7928 Mon Sep 17 00:00:00 2001 From: klendathu2k Date: Mon, 5 Feb 2024 11:53:15 -0500 Subject: [PATCH] Something in the compat tpc geometry is throwing a unicode error... this will pass it through and we will catch w/ the compiler. --- mgr/Dyson/Export/Mortran.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mgr/Dyson/Export/Mortran.py b/mgr/Dyson/Export/Mortran.py index 1b5ea8fb772..16d67d4a4af 100644 --- a/mgr/Dyson/Export/Mortran.py +++ b/mgr/Dyson/Export/Mortran.py @@ -851,8 +851,9 @@ def startElement(self,tag,attr): temp[0] = os.getenv(temp[0][1:]) file = '/'.join(temp) - with open(file,'r') as f: - + with open(file,'r',errors='replace') as f: + #print( f.readlines() ) + for line in f: if line.strip()=='\n': continue