mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-25 00:24:45 +00:00
no more file open when generating the logger, so get rid of exception catching here
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3345 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
12946ec9f7
commit
31602f7c5d
1 changed files with 1 additions and 7 deletions
|
|
@ -615,13 +615,7 @@ if options.fileoutput:
|
|||
not has_encoding(ns['encoding']):
|
||||
print_usage(_("Unknown encoding %r in %r for option %s") % \
|
||||
ns['encoding'], options.output, "'-F, --file-output'")
|
||||
# generating loggers with fileoutput can throw
|
||||
# an exception when opening the file
|
||||
try:
|
||||
logger = config.logger_new(ftype, **ns)
|
||||
except OSError, msg:
|
||||
print_usage(_("Illegal argument %r for option %s: %s") % \
|
||||
(arg, "'-F, --file-output'", str(msg)))
|
||||
logger = config.logger_new(ftype, **ns)
|
||||
config['fileoutput'].append(logger)
|
||||
if options.interactive is not None:
|
||||
config['interactive'] = options.interactive
|
||||
|
|
|
|||
Loading…
Reference in a new issue