This is the same issue as #172 . I tried the fix and it doesn't work. I still get the popup.
I also checked out the code and have something to say about this fix:
if sys.platform == "win32":
import ctypes
# Suppress critical error dialogs (like CFFI/GPF popups) on Windows
# SEM_NOGPFAULTERRORBOX = 0x0002
ctypes.windll.kernel32.SetErrorMode(0x0002)
Importing your library should not change a global state that affects my program too. Since the error originates from curl_cffi, I expect there to be a way to configure curl to not raise popups. But if their library does not support it, at least the fix ought to be to change this global state only temporarily inside the code block where it's needed.
But that only matters if the fix works, which it doesn't :/
This is the same issue as #172 . I tried the fix and it doesn't work. I still get the popup.
I also checked out the code and have something to say about this fix:
Importing your library should not change a global state that affects my program too. Since the error originates from curl_cffi, I expect there to be a way to configure curl to not raise popups. But if their library does not support it, at least the fix ought to be to change this global state only temporarily inside the code block where it's needed.
But that only matters if the fix works, which it doesn't :/