Skip to content

Commit

Permalink
Something in the compat tpc geometry is throwing a unicode error... t…
Browse files Browse the repository at this point in the history
…his will pass it through and we will catch w/ the compiler.
  • Loading branch information
klendathu2k committed Feb 5, 2024
1 parent 16fb61a commit 192f73b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mgr/Dyson/Export/Mortran.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 192f73b

Please sign in to comment.