Skip to content

Commit

Permalink
[2.9] plugin_formatter: sys.exit does not take a file argument
Browse files Browse the repository at this point in the history
Cleanup of leftover from bcdfdc0.

sys.exit does not take any named argument.

(cherry picked from commit cdad594)
  • Loading branch information
evgeni authored and mattclay committed May 6, 2020
1 parent b3a1288 commit 4f90958
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 4f90958

Please sign in to comment.