File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232 Version: 1.0
3333"""
3434
35- import sys
3635from typing import Any
3736
3837result : dict [str , Any ] = {}
@@ -566,8 +565,8 @@ def skip_all_inner_sets(position):
566565 break
567566 pos += 1
568567 if count != 0 :
569- print ( " \n Parser Error: Are you missing one or more '}'s? \n " )
570- sys . exit ( 1 )
568+ raise ValueError ( "Parser Error: Are you missing one or more '}}'s in string? "
569+ f"(string value: { repr ( string ) } " )
571570
572571 if max_count >= 2 :
573572 while position < end_of_main_set :
@@ -745,8 +744,7 @@ def skip_all_inner_sets(position):
745744 else :
746745 return current_set , next_set [0 ]
747746 else :
748- print ("\n The following String has no {}s to proceed\n " )
749- print (string )
747+ raise ValueError (f"The following String has no {{}}s to proceed: { repr (string )} !" )
750748
751749 # End of get_the_string()
752750
You can’t perform that action at this time.
0 commit comments