diff --git a/windows-capture-python/Cargo.toml b/windows-capture-python/Cargo.toml index 9497ae5..f5e88e9 100644 --- a/windows-capture-python/Cargo.toml +++ b/windows-capture-python/Cargo.toml @@ -4,7 +4,7 @@ version = "1.4.1" authors = ["NiiightmareXD"] edition = "2021" description = "Fastest Windows Screen Capture Library For Python 🔥" -readme = "README-Python.md" +readme = "README.md" repository = "https://github.com/NiiightmareXD/windows-capture/tree/main/windows-capture-python" license = "MIT" keywords = ["screen", "capture", "screenshot", "graphics", "windows"] diff --git a/windows-capture-python/README-Python.md b/windows-capture-python/README.md similarity index 100% rename from windows-capture-python/README-Python.md rename to windows-capture-python/README.md diff --git a/windows-capture-python/pyproject.toml b/windows-capture-python/pyproject.toml index 24821dc..ce93584 100644 --- a/windows-capture-python/pyproject.toml +++ b/windows-capture-python/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "maturin" name = "windows-capture" version = "1.4.1" description = "Fastest Windows Screen Capture Library For Python 🔥" -readme = "README-Python.md" +readme = "README.md" requires-python = ">=3.9" license = "MIT" authors = [{ name = "NiiightmareXD" }] diff --git a/windows-capture-python/src/lib.rs b/windows-capture-python/src/lib.rs index 7964777..6336d04 100644 --- a/windows-capture-python/src/lib.rs +++ b/windows-capture-python/src/lib.rs @@ -205,17 +205,8 @@ impl NativeWindowsCapture { match InnerNativeWindowsCapture::start(settings) { Ok(()) => (), Err(e) => { - if let GraphicsCaptureApiError::FrameHandlerError( - InnerNativeWindowsCaptureError::PythonError(ref e), - ) = e - { - return Err(PyException::new_err(format!( - "Capture Session Threw An Exception -> {e}", - ))); - } - return Err(PyException::new_err(format!( - "Capture Session Threw An Exception -> {e}", + "InnerNativeWindowsCapture::start Threw An Exception -> {e}", ))); } } @@ -243,17 +234,8 @@ impl NativeWindowsCapture { match InnerNativeWindowsCapture::start(settings) { Ok(()) => (), Err(e) => { - if let GraphicsCaptureApiError::FrameHandlerError( - InnerNativeWindowsCaptureError::PythonError(ref e), - ) = e - { - return Err(PyException::new_err(format!( - "Capture Session Threw An Exception -> {e}", - ))); - } - return Err(PyException::new_err(format!( - "Capture Session Threw An Exception -> {e}", + "InnerNativeWindowsCapture::start Threw An Exception -> {e}", ))); } }