diff --git a/src/modules/mount/main.py b/src/modules/mount/main.py index 235b67060..a07016f35 100644 --- a/src/modules/mount/main.py +++ b/src/modules/mount/main.py @@ -330,7 +330,7 @@ def run(): _("No partitions are defined for
{!s}
to use.").format("mount")) # Find existing swap partitions that are part of the installation and enable them now - swap_devices = [p['device'] for p in partitions if (p['fs'] == 'linuxswap' and p['claimed'])] + swap_devices = [p["device"] for p in partitions if (p["fs"] == "linuxswap" and p.get("claimed", False))] enable_swap_partition(swap_devices)