Catch AttributeError as well, in case hyphen.json is at root level