Commit 0da94c64 authored by intrigeri's avatar intrigeri
Browse files

lint_po: don't complain about lack of files to process in --cached mode.

Most commits we create don't modify any PO file. It's annoying and confusing to
be told "WARNING: no file to process :(" every time this happens: one may
wonder if they've done something wrong, which is generally not the case.
parent 00decbf9
......@@ -274,7 +274,7 @@ def main(logger) -> None:
args.files = list(itertools.filterfalse(lambda f: f.startswith('tmp/'),
if not args.files:
if not args.files and not args.cached:
logger.warning("no file to process :("
" You may want to add files to operate on. See --help for further information.")
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