From 0d72ef72acb6fe217f0615d88d8cb33d95ccf6b2 Mon Sep 17 00:00:00 2001 From: Paul Hebble Date: Sat, 19 Oct 2024 09:56:51 -0500 Subject: [PATCH] Try another type check --- 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 f9b1e5b..45e660b 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 len(download) > 0 else None + return download[0] if isinstance(download[0], str) and len(download) > 0 else None return download # Provide all downloads with alternate property in case we need them,