Rembg is a tool to remove images background
fixup! PEP8: Avoid bare exception
Christian Clauss1d65ed251a2e
diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.ymlindex dc9f0d2..8338e95 100644--- a/.github/workflows/lint_python.yml+++ b/.github/workflows/lint_python.yml@@ -12,7 +12,7 @@ jobs:- run: bandit --recursive --skip B101,B104,B310,B311 .- run: black --check --diff .- run: codespell- - run: flake8 . --count --ignore=E203,E266,E722,E731,F401,F811,F841,W503+ - run: flake8 . --count --ignore=E203,E266,E731,F401,F811,F841,W503--max-complexity=10 --max-line-length=103 --show-source --statistics- run: isort --check-only --profile black .- run: pip install -r requirements.txtdiff --git a/src/rembg/bg.py b/src/rembg/bg.pyindex 5f28cf6..3a14d14 100644--- a/src/rembg/bg.py+++ b/src/rembg/bg.py@@ -101,7 +101,7 @@ def remove(alpha_matting_erode_structure_size,alpha_matting_base_size,)- except:+ except Exception:cutout = naive_cutout(img, mask)else:cutout = naive_cutout(img, mask)