added missing import and extra exception handling for unrecognized label error in parted