From c966e6faf8a93ccf92bf2b9986053a30a5ea664d Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Sat, 24 Nov 2018 12:18:39 +0800 Subject: [PATCH] vcs: allow the value to be None This is a better fix for https://github.com/archlinuxcn/lilac/pull/91. --- nvchecker/source/vcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvchecker/source/vcs.py b/nvchecker/source/vcs.py index 51c2867..c57998d 100644 --- a/nvchecker/source/vcs.py +++ b/nvchecker/source/vcs.py @@ -27,7 +27,7 @@ def _parse_oldver(oldver): return PROT_VER, count, ver async def get_version(name, conf, **kwargs): - vcs = conf['vcs'] + vcs = conf['vcs'] or '' use_max_tag = conf.getboolean('use_max_tag', False) ignored_tags = conf.get("ignored_tags", "").split() oldver = conf.get('oldver')