From a2a239bdc6de316c9c905d24d5337da76892fcb0 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Sun, 30 Aug 2020 17:49:39 +0800 Subject: [PATCH] nvchecker_source/manual: convert to string because it's often written as an int or float, especially when converting from YAML. --- nvchecker_source/manual.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvchecker_source/manual.py b/nvchecker_source/manual.py index d25c616..fbcc85b 100644 --- a/nvchecker_source/manual.py +++ b/nvchecker_source/manual.py @@ -2,4 +2,4 @@ # Copyright (c) 2013-2020 lilydjwg , et al. async def get_version(name, conf, **kwargs): - return conf.get('manual').strip() or None + return str(conf.get('manual')).strip() or None