File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -492,6 +492,7 @@ def main(
492492 )
493493 argparser .add_argument (
494494 "--ignore_errors" ,
495+ default = None ,
495496 action = "append" ,
496497 nargs = 2 ,
497498 metavar = ("function" , "error_codes" ),
@@ -508,19 +509,6 @@ def main(
508509 args .ignore_errors = {function : error_codes .split ("," )
509510 for function , error_codes
510511 in args .ignore_errors }
511- else :
512- args .ignore_errors = None
513- func_to_errors = {}
514- for error , funcs in args .ignore_errors .items ():
515- for func in funcs :
516- if func_to_errors .get (func , None ) is None :
517- func_to_errors [func ] = []
518- func_to_errors [func ].append (error )
519- param = " PARAMETERS+=(\\ \n "
520- for func in sorted (func_to_errors .keys ()):
521- errors = sorted (func_to_errors [func ])
522- param += f" --ignore_errors { func } { ',' .join (errors )} \\ \n "
523- param += ")\n "
524512
525513 sys .exit (
526514 main (args .function ,
You can’t perform that action at this time.
0 commit comments