瀏覽代碼

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]