I am trying this:
try: master_check(key) print("Valid Key - Successfully decrypted") except InvalidToken as e: # Catch any InvalidToken ex