mirror of
https://github.com/corpnewt/gibMacOS.git
synced 2024-09-20 01:30:33 +00:00
removed a singleton-comparison pitfall
This commit is contained in:
parent
9a683e716f
commit
a59ccaab4d
1 changed files with 1 additions and 1 deletions
|
@ -655,7 +655,7 @@ class WinUSB:
|
|||
# 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!")
|
||||
|
|
Loading…
Reference in a new issue