From f8bc23991a9193ddeb911e2810435c28778d9d17 Mon Sep 17 00:00:00 2001 From: kramo Date: Wed, 20 Dec 2023 15:31:43 +0100 Subject: [PATCH] Fix me being stupid on my phone --- .pylintrc | 2 +- cartridges/importer/flatpak_source.py | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.pylintrc b/.pylintrc index 57a45cc..e2f5b68 100644 --- a/.pylintrc +++ b/.pylintrc @@ -2,8 +2,8 @@ ignore=importers -[MESSAGES CONTROL] +[MESSAGES CONTROL] disable=raw-checker-failed, bad-inline-option, diff --git a/cartridges/importer/flatpak_source.py b/cartridges/importer/flatpak_source.py index 3825364..a1104c9 100644 --- a/cartridges/importer/flatpak_source.py +++ b/cartridges/importer/flatpak_source.py @@ -54,10 +54,14 @@ class FlatpakSourceIterable(SourceIterable): } ) - if not source.locations: - return # TODO: I'm doing this on my phone, I don't even know why this is here lol - - generators = set(location.iterdir() for location in (self.source.locations.user_data["applications"], self.source.locations.system_data["applications"]) if location) + generators = set( + location.iterdir() + for location in ( + self.source.locations.user_data["applications"], + self.source.locations.system_data["applications"], + ) + if location + ) for entry in chain(*generators): if entry.suffix != ".desktop":