mirror of
https://github.com/lilydjwg/nvchecker
synced 2025-02-17 19:17:21 +00:00
Catch exceptions with version substitutions and log them
This commit is contained in:
parent
05b604530c
commit
a1222a0820
@ -43,7 +43,10 @@ async def get_version(name, conf):
|
||||
version = await func(name, conf)
|
||||
if version:
|
||||
version = version.replace('\n', ' ')
|
||||
version = substitute_version(version, name, conf)
|
||||
try:
|
||||
version = substitute_version(version, name, conf)
|
||||
except (ValueError, re.error):
|
||||
logger.exception('error occured in version substitutions for %s', name)
|
||||
return version
|
||||
else:
|
||||
logger.error('%s: no idea to get version info.', name)
|
||||
|
Loading…
Reference in New Issue
Block a user