Skip to content

Commit

Permalink
fix: time_int in ban_time remove whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Qurbonsaid authored Oct 25, 2024
1 parent 8d9418e commit c8d2cdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyUltroid/fns/admins.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def ban_time(time_str):
if not any(time_str.endswith(unit) for unit in ("s", "m", "h", "d")):
time_str += "s"
unit = time_str[-1]
time_int = time_str[:-1]
time_int = time_str[:-1].strip()
if not time_int.isdigit():
raise Exception("Invalid time amount specified.")
to_return = ""
Expand Down

0 comments on commit c8d2cdf

Please sign in to comment.