Is print_stage_prim_paths buggy?

The print_stage_prim_paths function could not be used due to an error. I was able to use it after modifying the following file. Is this modification ok?

isaac_sim-2023.1.0/exts/omni.isaac.core/omni/isaac/core/utils/stage.py

def print_stage_prim_paths(fabric=False) -> None:
    """Traverses the stage and prints all prim paths."""
    # Note: Need to import this here to prevent circular dependencies.
    from omni.isaac.core.utils.prims import get_prim_path

    for prim in traverse_stage(fabric=fabric):
        # prim_path = get_prim_path(prim, fabric=fabric)
        prim_path = get_prim_path(prim) # fix
        print(prim_path)