Commit b37a38ce authored by Sandro Knauß's avatar Sandro Knauß
Browse files

Stops the scripts explicitly.

When there are no files to process on, we should stop the script
directly. So other parts of the script can expect that there are files
to operate on. With the last commit, this is needed, as we execute
next(iterator), that fails if there is no element in the iterator.
parent c957b5b8
......@@ -297,6 +297,7 @@ def main(logger) -> None:
logger.warning("No file to process.\n"
"You may want to add files to operate on."
" See --help for further information.")
for prog in ("i18nspector",):
if shutil.which(prog) is None:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment