tag_get_default_value throwing an exception

Issue #179 new
Vijay M created an issue

PyMOAB test_core.py failing due to the recent change. It’s a little puzzling because the MB_ENTITY_NOT_FOUND error code should have been caught, but accessing the variable err seems to raise an error? Even print(err) triggers the same error.

FAIL: test_get_tag
Traceback (most recent call last):
  File "/Users/mahadevan/Code/sigma/moab-pristine2/test/pymoab/driver.py", line 23, in test_driver
    test()
  File "/Users/mahadevan/Code/sigma/moab-pristine2/build/osx/../../test/pymoab/test_core.py", line 230, in test_get_tag
    nodef_val_chck = mb.tag_get_default_value(nodef_tag)
  File "pymoab/core.pyx", line 1815, in pymoab.core.Core.tag_get_default_value
    if err == types.MB_ENTITY_NOT_FOUND:
  File "pymoab/types.pyx", line 109, in pymoab.types.check_error
    raise errtype(MOABErrorCode(err))
RuntimeError: MOAB ErrorCode: MB_ENTITY_NOT_FOUND

I have not debugged it just yet. Reporting as seen on a MacBook M2 (sonoma), using native Python (3.9.6).

Comments (0)

  1. Log in to comment