Skip to content

Commit

Permalink
fix: try upgrading a guard for a NoneType
Browse files Browse the repository at this point in the history
  • Loading branch information
seppzer0 committed Mar 1, 2024
1 parent d0651e0 commit 6a9421b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wrapper/commands/assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ def assets(self) -> list[str | GitHubApi | LineageOsApi | ParanoidAndroidApi]:
# process the non-"RON-only" download
else:
assets = [
# DFD
dfd,
# files from GitHub projects
GitHubApi(
project=su_manager,
Expand Down Expand Up @@ -98,8 +100,6 @@ def assets(self) -> list[str | GitHubApi | LineageOsApi | ParanoidAndroidApi]:
# finally, add ROM (if kernel base is not universal) and DFD into assets list
if self.rom_collector_dto:
assets.append(self.rom_collector_dto.run())
if dfd:
assets.append(dfd)

def _check(self) -> None:
os.chdir(dcfg.root)
Expand Down Expand Up @@ -129,7 +129,7 @@ def run(self) -> None:
self._check()
os.chdir(dcfg.assets)
for e in self.assets:
if e:
if e is not None:
fo.download(e)
print("\n", end="")
msg.done("Assets collected!")
Expand Down

0 comments on commit 6a9421b

Please sign in to comment.