mirror of
https://github.com/myned/modufur.git
synced 2024-12-24 14:27:27 +00:00
isdigit()
This commit is contained in:
parent
e927ccca9d
commit
dc63ec794e
1 changed files with 1 additions and 2 deletions
|
@ -137,8 +137,7 @@ def get_kwargs(ctx, args, *, limit=False):
|
||||||
|
|
||||||
if limit:
|
if limit:
|
||||||
for arg in remaining:
|
for arg in remaining:
|
||||||
if 1 <= len(arg) <= 2:
|
if arg.isdigit():
|
||||||
with suppress(ValueError):
|
|
||||||
if 1 <= int(arg) <= limit:
|
if 1 <= int(arg) <= limit:
|
||||||
lim = int(arg)
|
lim = int(arg)
|
||||||
remaining.remove(arg)
|
remaining.remove(arg)
|
||||||
|
|
Loading…
Reference in a new issue