mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
replace linebreaks in version strings
linebreaks in version breaks nvchecker
This commit is contained in:
parent
0912747416
commit
f98ef68949
1 changed files with 2 additions and 1 deletions
|
@ -17,6 +17,7 @@ async def get_version(name, conf):
|
|||
for key in handler_precedence:
|
||||
if key in conf:
|
||||
func = import_module('.source.' + key, __package__).get_version
|
||||
return await func(name, conf)
|
||||
version = await func(name, conf)
|
||||
return version.replace('\n', ' ')
|
||||
else:
|
||||
logger.error('%s: no idea to get version info.', name)
|
||||
|
|
Loading…
Add table
Reference in a new issue