Unable to load context

i have a data context created at a custom location using get_context(mode = ‘file’, context_root_dir=path) function. after couple of days, when i try to load the existing context using get_context(mode = ‘file’, context_root_dir=path). I get the error AttributeError: ‘str’ object has no attribute ‘name’

I see that the “yml” file is also there. Why do i get this error?

Can anyone help?