- currMountPoint = self.getCurrentPartition()["mountpoint"]
- currUuid = self.getCurrentPartition()["uuid"]
- if currMountPoint == "":
- self.currPartition = self.getCurrentPartition()
- self.showMountPointSetup()
+ currentPartition = self.getCurrentPartition()
+ if currentPartition is not None:
+ currMountPoint = currentPartition["mountpoint"]
+ currUuid = currentPartition["uuid"]
+ if currMountPoint == "":
+ self.currPartition = currentPartition
+ self.showMountPointSetup()
+ else:
+ self.doUmount(currMountPoint, self.showPartitionList)