summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--textw/partition_text.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/textw/partition_text.py b/textw/partition_text.py
index 94ecb7a49..5adb8fffe 100644
--- a/textw/partition_text.py
+++ b/textw/partition_text.py
@@ -64,7 +64,7 @@ class PartitionWindow:
elif part.get_flag(parted.PARTITION_RAID) == 1:
ptype = _("software RAID component")
elif part.fs_type:
- if request.fstype != None:
+ if request and request.fstype != None:
ptype = request.fstype.getName()
else:
ptype = part.fs_type.name