Skip to content

Commit

Permalink
explicit return None
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekmj303 committed Oct 14, 2024
1 parent d3d822b commit 3a8e6b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ytmusicapi/parsers/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ def parse_duration(duration):
return duration
duration_split = duration.strip().split(":")
for d in duration_split:
if not d.isdigit(): # For e.g: "2,343"
return
if not d.isdigit(): # For e.g: "2,343"
return None
mapped_increments = zip([1, 60, 3600], reversed(duration_split))
seconds = sum(multiplier * int(time) for multiplier, time in mapped_increments)
return seconds
Expand Down

0 comments on commit 3a8e6b3

Please sign in to comment.