Skip to content

Commit ec32f6b

Browse files
authored
Linux: rethrow exceptions correctly
otherwise exception messages are not kept
1 parent 57277c5 commit ec32f6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyvirtualcam/native_linux_v4l2loopback/virtual_output.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class VirtualOutput {
130130
} catch (std::exception &ex) {
131131
close(_camera_fd);
132132
_camera_fd = -1;
133-
throw ex;
133+
throw;
134134
}
135135
};
136136

0 commit comments

Comments
 (0)