The exceptions thrown are of type OdbError; for example, the following script catches exceptions thrown when the python interface in not successful in opening an output database: invalidOdbName = "invalid.odb"
try:
myOdb = openOdb(invalidOdbName)
except OdbError as e:
print('Abaqus error message: %s' % str(e))
print('customized error message here')
except:
print('Unknown Exception. ')
| |||||||