mirror of
https://github.com/lilydjwg/nvchecker
synced 2024-12-12 09:45:29 +00:00
nvtake: exit on unexpected config
This commit is contained in:
parent
a767da8a51
commit
5dd8a4df68
@ -19,9 +19,10 @@ def take():
|
||||
|
||||
s = core.Source(args.file)
|
||||
if not s.oldver or not s.newver:
|
||||
logger.error(
|
||||
"%s doesn't have both 'oldver' and 'newver' set, ignoring.", s
|
||||
logger.fatal(
|
||||
"%s doesn't have both 'oldver' and 'newver' set.", s
|
||||
)
|
||||
sys.exit(2)
|
||||
|
||||
oldvers = core.read_verfile(s.oldver)
|
||||
newvers = core.read_verfile(s.newver)
|
||||
|
Loading…
Reference in New Issue
Block a user