Skip to content

Commit

Permalink
# pylint: broad-exception-caught
Browse files Browse the repository at this point in the history
  • Loading branch information
rsanchez87 committed Jul 8, 2024
1 parent 8aa10c0 commit f8d4cb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fluster/decoders/gstreamer.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# License along with this library. If not, see <https://www.gnu.org/licenses/>.

# pylint: disable=too-many-lines
# pylint: disable=no-self-use
# pylint: broad-exception-caught

import shlex
import subprocess
Expand All @@ -40,6 +40,7 @@
def gst_element_exists(element: str) -> bool:
"""Check if an element exists in current GStreamer installation"""
inspect_exe = normalize_binary_cmd("gst-inspect-1.0")

try:
subprocess.run(
[inspect_exe, "--exists", element],
Expand Down

0 comments on commit f8d4cb0

Please sign in to comment.