commit 5e6345fdf5803dbc7f5626decd183484451ff6a9 parent 7e9f2f586282ddf649a996b0d1167972f8216d36 Author: AsherMorgan <59518073+AsherMorgan@users.noreply.github.com> Date: Mon, 23 Mar 2020 11:44:57 -0700 Fix song number bugs. Diffstat:
| M | Songs2Slides.py | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Songs2Slides.py b/Songs2Slides.py @@ -100,9 +100,10 @@ if (__name__ == "__main__"): lyrics += [""] except: print("We couldn't find the lyrics to that song.") + song -= 1 # Add more songs - if (input("Do you want to add another song? (y/n): ").lower() == "n"): + if (song >= 1 and input("Do you want to add another song? (y/n): ").lower() == "n"): break song += 1