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

Cleanup of leftover from bcdfdc0cc3.

sys.exit does not take any named argument.
pull/69314/merge
Evgeni Golov 5 years ago committed by GitHub
parent 1a5bbfbe01
commit cdad594b16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save