Update main.py

Changed error handling to make it more subversive