revised pm_ListPMs for better error handling
Revert "revised pm_ListPMs for better error handling"

This reverts commit dd3620753ac5cb9d4e28cd60d79aaea9f71426a0.
Revert "Revert "revised pm_ListPMs for better error handling""

This reverts commit 8f5fbeac7208d67ff8bf4641d5e6c481a2b48618.