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:
parent
1a5bbfbe01
commit
cdad594b16
1 changed files with 2 additions and 2 deletions
|
@ -678,9 +678,9 @@ def validate_options(options):
|
|||
''' validate option parser options '''
|
||||
|
||||
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):
|
||||
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:
|
||||
sys.exit("--template-dir must be specified")
|
||||
|
||||
|
|
Loading…
Reference in a new issue