diff --git a/src/utils/resources.py b/src/utils/resources.py index 7acc84016..1e12d67e2 100644 --- a/src/utils/resources.py +++ b/src/utils/resources.py @@ -152,7 +152,11 @@ class AppResource: "__APP__": self.app, "__YNH_ARCH__": system_arch(), "__YNH_DEBIAN_VERSION__": debian_version(), - "__YNH_APP_UPSTREAM_VERSION__": manager.wanted["version"].split("~")[0] if manager.wanted else manager.current["version"].split("~")[0], + "__YNH_APP_UPSTREAM_VERSION__": ( + manager.wanted["version"].split("~")[0] + if manager.wanted + else manager.current["version"].split("~")[0] + ), } def recursive_apply(function: Callable, data: Any) -> Any: