diff options
Diffstat (limited to 'textw')
-rw-r--r-- | textw/partition_text.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/textw/partition_text.py b/textw/partition_text.py index f54d892a5..9ee81cca9 100644 --- a/textw/partition_text.py +++ b/textw/partition_text.py @@ -470,7 +470,10 @@ class PartitionWindow: ptype = origrequest.fstype.getName() if ptype == "foreign": part = get_partition_by_name(self.diskset.disks, origrequest.device) - ptype = map_foreign_to_fsname(part.native_type) + if part is not None: + ptype = map_foreign_to_fsname(part.native_type) + else: + pytype = _("Foreign") type = Label(ptype) subgrid.setField(type, 1, srow, (0,0,0,1), anchorRight = 1) srow = srow +1 |