Przeglądaj źródła

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

Noah Vogt 2 lat temu
rodzic
commit
5ef8a40b1f
1 zmienionych plików z 2 dodań i 0 usunięć
  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]