Do not exit with error in the linkchecker script if all warnings are ignored.

This commit is contained in:
Bastian Kleineidam 2009-07-22 22:11:39 +02:00
parent c798bd4d85
commit 1e728eb6cc
2 changed files with 7 additions and 3 deletions

View file

@ -22,6 +22,10 @@ Changes:
Closes: SF bug #2579899
- logging: Make output more concise by not logging duplicate cached URLs.
- nntp: Only retry 3 instead of 5 times to connect to busy NNTP servers.
- cmdline: The command line script exits with error only when errors
or warnings are printed. Previously it exited with error status even
when all warnings were ignored.
Closes: SF bug #2820812
Features:
- email: Added email syntax checking.

View file

@ -810,7 +810,7 @@ else:
if config['interactive']:
raw_input(_("Hit RETURN to finish"))
# if errors or warnings are encountered, exit with non-zero status
if config['logger'].errors or \
(config['logger'].warnings and config['warnings']):
# if printed errors or warnings are encountered, exit with non-zero status
if config['logger'].errors_printed or \
(config['logger'].warnings_printed and config['warnings']):
sys.exit(1)