Переглянути джерело

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

Noah Vogt 2 роки тому
батько
коміт
5ef8a40b1f
1 змінених файлів з 2 додано та 0 видалено
  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]