cgjordan / shuffle-romaji.py

Shuffles a built-in list of Japanese Romaji and presents them one character at a time.
0 stars 0 forks source link

Ugly Crash With Python 2 #2

Open cgjordan opened 7 years ago

cgjordan commented 7 years ago

The script requires Python 3. If it is run under Python 2, it should give a nice error message, not crash mysteriously. py2-crash.txt

cgjordan commented 7 years ago

I've tried a few different version checks at the beginning of the script, but this syntax error still appears. It's as if the version checks aren't getting run.

Maybe python is doing a syntax check before executing anything in the script? I wonder how to get around this...