diff --git a/gui/download2.py b/gui/download2.py index dad140f..747f6be 100644 --- a/gui/download2.py +++ b/gui/download2.py @@ -20,7 +20,7 @@ def _async_raise(tid, exctype): res = ctypes.pythonapi.PyThreadState_SetAsyncExc(tid, ctypes.py_object(exctype)) if res == 0: raise ValueError("invalid thread id") - elif res != 1: + if res != 1: ctypes.pythonapi.PyThreadState_SetAsyncExc(tid, None) raise SystemError("PyThreadState_SetAsyncExc failed") diff --git a/gui/login1_sms.py b/gui/login1_sms.py index bbf7975..84b71a1 100644 --- a/gui/login1_sms.py +++ b/gui/login1_sms.py @@ -17,7 +17,7 @@ def _async_raise(tid, exctype): res = ctypes.pythonapi.PyThreadState_SetAsyncExc(tid, ctypes.py_object(exctype)) if res == 0: raise ValueError("invalid thread id") - elif res != 1: + if res != 1: ctypes.pythonapi.PyThreadState_SetAsyncExc(tid, None)