From a59ccaab4d7cf58f25a115ad5a8e0b78040be58b Mon Sep 17 00:00:00 2001 From: naelsondouglas Date: Tue, 2 Nov 2021 03:35:53 -0300 Subject: [PATCH] removed a singleton-comparison pitfall --- MakeInstall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MakeInstall.py b/MakeInstall.py index abf52cb..6172520 100755 --- a/MakeInstall.py +++ b/MakeInstall.py @@ -655,7 +655,7 @@ def install_clover(self, disk, clover_version = None): # Some users are having issues with the "partitions" key not populating - possibly a 3rd party disk management soft? # Possibly a bad USB? # We'll see if the key exists - if not, we'll throw an error. - if self.d.disks[str(disk["index"])].get("partitions",None) == None: + if self.d.disks[str(disk["index"])].get("partitions",None) is None: # No partitions found. shutil.rmtree(temp,ignore_errors=True) print("No partitions located on disk!")