Procházet zdrojové kódy

fix bug that when trying to generate a structure which is not found in the source file

Noah Vogt před 2 roky
rodič
revize
5ef8a40b1f
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      utils/strings.py

+ 2 - 0
utils/strings.py

@@ -47,6 +47,8 @@ def get_songtext_by_structure(content: list, structure: str) -> str:
         ):
             found_desired_structure: bool = True
 
+    if not found_desired_structure:
+        error_msg("could not find structure '{}'".format(structure))
     return output_str[:-1]