fix an exception text

This commit is contained in:
Fabian Dill 2020-02-18 09:50:50 +01:00
parent 0220575c50
commit a5e3777484
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ def main():
try: try:
weights_cache[args.meta] = get_weights(args.meta) weights_cache[args.meta] = get_weights(args.meta)
except Exception as e: except Exception as e:
raise ValueError(f"File {args.weights} is destroyed. Please fix your yaml.") from e raise ValueError(f"File {args.meta} is destroyed. Please fix your yaml.") from e
print(f"Meta: {args.meta} >> {weights_cache[args.meta]['meta_description']}") print(f"Meta: {args.meta} >> {weights_cache[args.meta]['meta_description']}")
if args.samesettings: if args.samesettings:
raise Exception("Cannot mix --samesettings with --meta") raise Exception("Cannot mix --samesettings with --meta")