From dc63ec794e54f5245a38388b98bd913f0c32a815 Mon Sep 17 00:00:00 2001 From: Myned Date: Fri, 20 Oct 2017 16:20:47 -0400 Subject: [PATCH] isdigit() --- src/main/utils/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/utils/utils.py b/src/main/utils/utils.py index 29fef8d..d75ca93 100644 --- a/src/main/utils/utils.py +++ b/src/main/utils/utils.py @@ -137,8 +137,7 @@ def get_kwargs(ctx, args, *, limit=False): if limit: for arg in remaining: - if 1 <= len(arg) <= 2: - with suppress(ValueError): + if arg.isdigit(): if 1 <= int(arg) <= limit: lim = int(arg) remaining.remove(arg)