Skip to content

Commit

Permalink
Issue #6274 added the break for once the valid time duration is found
Browse files Browse the repository at this point in the history
Implemented the fix as suggested in #6274 (comment).
  • Loading branch information
prathamdby committed Mar 15, 2024
1 parent edfb9ff commit 9e242cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions redbot/cogs/mutes/converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ async def convert(
for k, v in time.groupdict().items():
if v:
time_data[k] = int(v)
break # Break after the first valid match
if time_data:
try:
result["duration"] = timedelta(**time_data)
Expand Down

0 comments on commit 9e242cb

Please sign in to comment.