From 5f18a5f0592b4192e14c65b062020b61ec8271de Mon Sep 17 00:00:00 2001 From: Tagadda <36127788+Tagadda@users.noreply.github.com> Date: Sun, 21 Aug 2022 14:57:01 +0000 Subject: [PATCH] fix: default value for manifest.upstream.website --- package_linter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package_linter.py b/package_linter.py index 8e7d70a..f2c1249 100755 --- a/package_linter.py +++ b/package_linter.py @@ -1438,7 +1438,7 @@ class Manifest(TestSuite): yield Warning( "The field 'userdoc' should point to the **official** user doc, not the YunoHost documentation. (The default auto-generated README already includes a link to the yunohost doc page for this app). If there's no official user doc, simply remove the userdoc key entirely." ) - if "example.com" in self.manifest["upstream"].get("demo", "") or "example.com" in self.manifest["upstream"].get("website"): + if "example.com" in self.manifest["upstream"].get("demo", "") or "example.com" in self.manifest["upstream"].get("website", ""): yield Warning("It seems like the upstream section still contains placeholder values such as 'example.com' ...")