forked from Mirror/pmbootstrap
pmb.install.recovery: Check for None before going through blacklist (MR 2464)
It doesn't really make sense to check the blacklist against None, so just skip the value if it's None. Appeases mypy.
This commit is contained in:
parent
8bc848fa77
commit
b49da9ad82
1 changed files with 6 additions and 1 deletions
|
@ -36,7 +36,12 @@ def create_zip(args: PmbArgs, chroot: Chroot, device: str):
|
|||
logging.info(f"({chroot}) create recovery zip")
|
||||
|
||||
for key in fvars:
|
||||
pmb.flasher.check_partition_blacklist(deviceinfo, key, fvars[key])
|
||||
fvalue = fvars[key]
|
||||
|
||||
if fvalue is None:
|
||||
continue
|
||||
|
||||
pmb.flasher.check_partition_blacklist(deviceinfo, key, fvalue)
|
||||
|
||||
# Create config file for the recovery installer
|
||||
options = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue