Kill your script with a hotkey $pip install failsafe-kill from failsafe_kill import start_failsafe start_failsafe(hotkey='ctrl+e') ..... int() can't convert non-string with explicit base int() can't convert non-string with explicit base int() can't convert non-string with explicit base int() can't convert non-string with explicit base int() can't convert non-string with explicit base int() can't convert non-string with explicit base int() can't convert non-string with explicit base int() can't convert non-string with explicit base int() can't convert non-string with explicit base int() can't convert non-string with explicit base int() can't convert non-string with explicit base Process finished with exit code 1