SetErrorMode() is used in disk_partitions() because in case of error it may display a message box. It is reset to system default before exiting the function but instead it should be reset the error mode to whatever it was before in case the user changed it in the python app.
SetErrorMode() is used in disk_partitions() because in case of error it may display a message box. It is reset to system default before exiting the function but instead it should be reset the error mode to whatever it was before in case the user changed it in the python app.