adding additional error checking for getscore.py