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:
calvin 2006-06-05 19:35:01 +00:00
parent 12946ec9f7
commit 31602f7c5d

View file

@ -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