[python, c++] Fix misleading DoesNotExistErrors
in open
factory
#7103
Loading
DoesNotExistErrors
in open
factory
#7103