Update main.py

Updated to catch non-standard input.