From e06603f0e143360ccb932ce39df37eac22969f90 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sun, 7 Feb 2021 12:53:01 +0100 Subject: has_partitions() doesn't take any parameters, old reminant of prototype code. --- examples/guided.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/guided.py b/examples/guided.py index 1e879316..5268042d 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -98,7 +98,7 @@ archinstall.storage['_guided']['mirrors'] = mirror_regions harddrive = archinstall.select_disk(archinstall.all_disks()) archinstall.storage['_guided']['harddrive'] = harddrive -if harddrive.has_partitions(harddrive): +if harddrive.has_partitions(): archinstall.log(f" ! {harddrive} contains existing partitions", fg='red') if (option := input('Do you wish to keep existing partition setup or format the entire disk? (k/f): ')).lower() in ('k', 'keep'): print("We're keeping it!") -- cgit v1.2.3-54-g00ecf