Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
# pylint: disable=no-else-continue different blocks
  • Loading branch information
rsanchez87 committed Dec 11, 2023
1 parent 54272cd commit 8144e2f
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 @@ -120,12 +120,14 @@ def parse_videocodectestsink_md5sum(self, data: List[str], verbose: bool) -> str
"conformance/checksum, checksum-type=(string)MD5, checksum=(string)"
)
sum_start = line.find(pattern)
# pylint: disable=no-else-continue
if sum_start <= 0:
# Skip to the next iteration if sum_start is less than or equal to 0
continue
else:
sum_start += len(pattern)
sum_end = line[sum_start:].find(";")
# pylint: disable=no-else-continue
if sum_end <= 0:
# Skip to the next iteration if sum_end is less than or equal to 0
continue
Expand All @@ -134,7 +136,6 @@ def parse_videocodectestsink_md5sum(self, data: List[str], verbose: bool) -> str
md5sum = line[sum_start:sum_end]
if not verbose:
return md5sum
# pylint: disable=no-else-continue

if not md5sum:
raise Exception("No MD5 found in the program trace.")
Expand Down

0 comments on commit 8144e2f

Please sign in to comment.