Explorar o código

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

Noah Vogt %!s(int64=2) %!d(string=hai) anos
pai
achega
5ef8a40b1f
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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]