diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-08-01 18:58:40 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-08-01 18:58:40 +0000 |
commit | 73c270325aeb2b4a2d3a7d927cdb890ca8773e90 (patch) | |
tree | e92b595d7ab2c1f5cbb5a8c974413d8d4519cf11 /textw | |
parent | ad8450f31f601fc55ea9aa0204728872f87d9ea8 (diff) | |
download | anaconda-73c270325aeb2b4a2d3a7d927cdb890ca8773e90.tar.gz anaconda-73c270325aeb2b4a2d3a7d927cdb890ca8773e90.tar.xz anaconda-73c270325aeb2b4a2d3a7d927cdb890ca8773e90.zip |
we can't get a native type unless it's really a partition, so fall back to just saying Foreign if we can't
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 |