From 242a8a5964030fcd318e00f677defa7f3fcea9f9 Mon Sep 17 00:00:00 2001 From: jfuller Date: Tue, 21 Mar 2023 09:06:25 +0100 Subject: [PATCH] fix short version names when processing a version=None --- griffon/output.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/griffon/output.py b/griffon/output.py index 23d7a55..ba6439a 100644 --- a/griffon/output.py +++ b/griffon/output.py @@ -80,8 +80,9 @@ def component_type_style(type): def output_version(ctx, version): - if version.startswith("sha256") and ctx.obj["SHORT_VERSION_VALUES"]: - return f"sha256 ...{version[-8:]}" + if version: + if version.startswith("sha256") and ctx.obj["SHORT_VERSION_VALUES"]: + return f"sha256 ...{version[-8:]}" return version