Skip to content

Commit 2d7b4d7

Browse files
committed
subprocess best practice
1 parent 86e7ee9 commit 2d7b4d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dlna.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1917,6 +1917,7 @@ def _get_media_duration(self, file_path, mime_type):
19171917
capture_output=True,
19181918
text=True,
19191919
timeout=10,
1920+
check=False,
19201921
)
19211922

19221923
if result.returncode == 0 and result.stdout.strip():
@@ -1937,6 +1938,7 @@ def _get_media_duration(self, file_path, mime_type):
19371938
capture_output=True,
19381939
text=True,
19391940
timeout=10,
1941+
check=False,
19401942
)
19411943

19421944
if result.returncode == 0 and result.stdout.strip():

0 commit comments

Comments
 (0)