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:
Newbyte 2024-10-29 22:16:59 +01:00
parent 8bc848fa77
commit b49da9ad82
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -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 = {