Skip to content

Commit c8d2cdf

Browse files
authored
fix: time_int in ban_time remove whitespace
1 parent 8d9418e commit c8d2cdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyUltroid/fns/admins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def ban_time(time_str):
2626
if not any(time_str.endswith(unit) for unit in ("s", "m", "h", "d")):
2727
time_str += "s"
2828
unit = time_str[-1]
29-
time_int = time_str[:-1]
29+
time_int = time_str[:-1].strip()
3030
if not time_int.isdigit():
3131
raise Exception("Invalid time amount specified.")
3232
to_return = ""

0 commit comments

Comments
 (0)