Describe the bug
When trying to access a feature/feature path on an FS that does not exist, the error is an AttributeError with a not very helpful error message.
To Reproduce
def test_bad_feature_path(small_typesystem_xml):
cas = Cas(typesystem=load_typesystem(small_typesystem_xml))
TokenType = cas.typesystem.get_type("cassis.Token")
token = TokenType(xmiID=10, begin=0, end=0)
with pytest.raises(AttributeError) as ex:
token[0]
Expected behavior
A nicer error message would be good
Describe the bug When trying to access a feature/feature path on an FS that does not exist, the error is an AttributeError with a not very helpful error message.
To Reproduce
Expected behavior A nicer error message would be good
Please complete the following information: