When the script is run without the --punctuation argument, the following error message is observed:
Traceback (most recent call last):
File "lyricpass.py", line 128, in <module>
main()
File "lyricpass.py", line 119, in main
lyrics = format_lyrics(lyrics) # format lyrics as specified in arguments
File "lyricpass.py", line 90, in format_lyrics
formatted = [''.join(c for c in s if c not in string.punctuation) for s in formatted]
File "lyricpass.py", line 90, in <listcomp>
formatted = [''.join(c for c in s if c not in string.punctuation) for s in formatted]
File "lyricpass.py", line 90, in <genexpr>
formatted = [''.join(c for c in s if c not in string.punctuation) for s in formatted]
TypeError: 'in <string>' requires string as left operand, not int
When the script is run without the --punctuation argument, the following error message is observed: