diff --git a/netrender/utils.py b/netrender/utils.py index a9c0cdeb81a4a1049c7ec29a0620de63562e0ef3..e3124a1455eeb02d1d3e960580a117a2cb226cdb 100644 --- a/netrender/utils.py +++ b/netrender/utils.py @@ -61,7 +61,7 @@ else: def __exit__(self, exc_type, exc_value, traceback): pass -if system in {'Windows', 'win32'} and platform.version() >= '5': # Error mode is only available on Win2k or higher, that's version 5 +if system in {"Windows", "win32"}: import ctypes class NoErrorDialogContext: def __init__(self):