fix get_version returning None
This commit is contained in:
parent
f98ef68949
commit
ac6616afd6
|
@ -18,6 +18,8 @@ async def get_version(name, conf):
|
||||||
if key in conf:
|
if key in conf:
|
||||||
func = import_module('.source.' + key, __package__).get_version
|
func = import_module('.source.' + key, __package__).get_version
|
||||||
version = await func(name, conf)
|
version = await func(name, conf)
|
||||||
return version.replace('\n', ' ')
|
if version:
|
||||||
|
version.replace('\n', ' ')
|
||||||
|
return version
|
||||||
else:
|
else:
|
||||||
logger.error('%s: no idea to get version info.', name)
|
logger.error('%s: no idea to get version info.', name)
|
||||||
|
|
Loading…
Reference in New Issue