From 894352e44087f559ee13cc6289f8b5179c0e262c Mon Sep 17 00:00:00 2001 From: Maik Riechert Date: Tue, 30 Jan 2024 09:02:44 +0000 Subject: [PATCH] Linux: rethrow exceptions correctly (#115) --- .github/scripts/test-windows.ps1 | 2 +- pyvirtualcam/native_linux_v4l2loopback/virtual_output.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/test-windows.ps1 b/.github/scripts/test-windows.ps1 index 4d33b96..173d5c0 100644 --- a/.github/scripts/test-windows.ps1 +++ b/.github/scripts/test-windows.ps1 @@ -97,7 +97,7 @@ exec { python -m pip install -r dev-requirements.txt } # Install test helper package Push-Location test/win-dshow-capture -exec { python -m pip install wheel } +exec { python -m pip install wheel setuptools } exec { python -u setup.py bdist_wheel } python -m pip uninstall -y pyvirtualcam_win_dshow_capture ls dist\*cp${PYVER}*win*.whl | % { exec { python -m pip install $_ } } diff --git a/pyvirtualcam/native_linux_v4l2loopback/virtual_output.h b/pyvirtualcam/native_linux_v4l2loopback/virtual_output.h index 266b5e6..9810bec 100644 --- a/pyvirtualcam/native_linux_v4l2loopback/virtual_output.h +++ b/pyvirtualcam/native_linux_v4l2loopback/virtual_output.h @@ -130,7 +130,7 @@ class VirtualOutput { } catch (std::exception &ex) { close(_camera_fd); _camera_fd = -1; - throw ex; + throw; } };