plugin_formatter: sys.exit does not take a file argument (#68016)

Cleanup of leftover from bcdfdc0cc3.

sys.exit does not take any named argument.
This commit is contained in:
Evgeni Golov 2020-05-05 05:08:23 +02:00 committed by GitHub
parent 1a5bbfbe01
commit cdad594b16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -678,9 +678,9 @@ def validate_options(options):
''' validate option parser options ''' ''' validate option parser options '''
if not options.module_dir: if not options.module_dir:
sys.exit("--module-dir is required", file=sys.stderr) sys.exit("--module-dir is required")
if not os.path.exists(options.module_dir): if not os.path.exists(options.module_dir):
sys.exit("--module-dir does not exist: %s" % options.module_dir, file=sys.stderr) sys.exit("--module-dir does not exist: %s" % options.module_dir)
if not options.template_dir: if not options.template_dir:
sys.exit("--template-dir must be specified") sys.exit("--template-dir must be specified")