We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f786a49 commit 80cda5eCopy full SHA for 80cda5e
scripts/compile_abaqus.py
@@ -59,7 +59,10 @@ def build_model(model_cat, model_info):
59
file_contents = ''
60
for model_file in model_files:
61
file = pl.Path('../models/' + model_cat) / 'src' / model_file.strip('"')
62
- file_contents = file_contents + file.read_text() + '\n'
+ try:
63
+ file_contents = file_contents + file.read_text() + '\n'
64
+ except UnicodeDecodeError:
65
+ file_contents = file_contents + file.read_text(encoding='latin1') + '\n'
66
67
# dec_freeform (if written, is not needed within the file). Remove it, and add it in the beginning of the whole file
68
dec_freeform = '!DEC$ FREEFORM'
0 commit comments