From 8bd8c0d4a9d6fb3f5d2c963efc91bac3f8f10e0f Mon Sep 17 00:00:00 2001 From: Henning Bredel Date: Fri, 13 Oct 2023 15:55:41 +0200 Subject: [PATCH] Resolve minor issues --- geonode/storage/data_retriever.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geonode/storage/data_retriever.py b/geonode/storage/data_retriever.py index 68a14c2e864..156efdd83de 100644 --- a/geonode/storage/data_retriever.py +++ b/geonode/storage/data_retriever.py @@ -221,14 +221,14 @@ def _unzip(self, zip_name: str) -> Mapping: existing = self.file_paths[f"{ext}_file"] self.file_paths[f"{ext}_file"] = [ Path(str(_file)), - *(existing if type(existing) == list else [existing]), + *(existing if existing is list else [existing]), ] else: self.file_paths[f"{ext}_file"] = Path(str(_file)) tmp = self.file_paths.copy() for key, value in self.file_paths.items(): - if type(value) == list: + if value is list: for index, file_path in enumerate(value): n = f"{key}_{index}" if index > 0 else key tmp[n] = file_path