From c8d2cdfdfd9f3c1f5929659934b3833d108f146e Mon Sep 17 00:00:00 2001 From: Qurbonsaid Date: Fri, 25 Oct 2024 19:42:29 +0500 Subject: [PATCH] fix: time_int in ban_time remove whitespace --- pyUltroid/fns/admins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyUltroid/fns/admins.py b/pyUltroid/fns/admins.py index 09d76ff8a5..9c26ced4ef 100644 --- a/pyUltroid/fns/admins.py +++ b/pyUltroid/fns/admins.py @@ -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 = ""