Skip to content

Commit

Permalink
Try another type check
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Oct 19, 2024
1 parent 449db15 commit 0d72ef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netkan/netkan/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0d72ef7

Please sign in to comment.