mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-02 11:54:43 +00:00
Do not exit with error in the linkchecker script if all warnings are ignored.
This commit is contained in:
parent
c798bd4d85
commit
1e728eb6cc
2 changed files with 7 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue