diff --git a/google/generativeai/notebook/cmd_line_parser.py b/google/generativeai/notebook/cmd_line_parser.py index 7005bf600..9b8e84048 100644 --- a/google/generativeai/notebook/cmd_line_parser.py +++ b/google/generativeai/notebook/cmd_line_parser.py @@ -373,15 +373,10 @@ def _create_parser( epilog = "" # Commands - extra_args = {} - if sys.version_info[0:2] >= (3, 9): - extra_args["exit_on_error"] = False - parser = argument_parser.ArgumentParser( prog=system_name, description=description, epilog=epilog, - **extra_args, ) subparsers = parser.add_subparsers(dest="cmd") _create_run_parser(