From 73f661a2ecb55b7d3e20be476a31cf5cfb213b0c Mon Sep 17 00:00:00 2001 From: Paul Hebble Date: Sat, 19 Oct 2024 10:01:31 -0500 Subject: [PATCH] Don't return None for download --- netkan/netkan/metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netkan/netkan/metadata.py b/netkan/netkan/metadata.py index 45e660b..daac1a5 100644 --- a/netkan/netkan/metadata.py +++ b/netkan/netkan/metadata.py @@ -366,7 +366,7 @@ def version(self) -> Version: def download(self) -> str: download = self._raw.get('download') if isinstance(download, list): - return download[0] if isinstance(download[0], str) and len(download) > 0 else None + return download[0] if isinstance(download[0], str) and len(download) > 0 else '' return download # Provide all downloads with alternate property in case we need them,