File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -578,6 +578,10 @@ def _evaluate_arguments(args):
578578 logger .critical ("No input files specified" )
579579 sys .exit (ARGUMENT_ERR )
580580
581+ # check for correct file types
582+ for f in args .input_files :
583+ confirm_file_type (f , file_types , sys_error = True )
584+
581585 if args .validate_sbml_units :
582586 # A failed unit consistency check generates an error
583587 strict_units = True
@@ -612,6 +616,10 @@ def _evaluate_arguments(args):
612616 logger .critical ("No input files specified" )
613617 sys .exit (ARGUMENT_ERR )
614618
619+ # check for correct file types
620+ for f in args .input_files :
621+ confirm_file_type (f , file_types , sys_error = True )
622+
615623 try :
616624 result = validate_sedml_files (args .input_files )
617625 except Exception as e :
@@ -639,6 +647,10 @@ def _evaluate_arguments(args):
639647 logger .critical ("No input files specified" )
640648 sys .exit (ARGUMENT_ERR )
641649
650+ # check for correct file types
651+ for f in args .input_files :
652+ confirm_file_type (f , file_types , sys_error = True )
653+
642654 try :
643655 if len (args .input_files ) == 1 :
644656 sedml_file = [args .input_files [0 ]]
You can’t perform that action at this time.
0 commit comments