1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-25 06:37:29 +00:00

isdigit()

This commit is contained in:
Myned 2017-10-20 16:20:47 -04:00
parent e927ccca9d
commit dc63ec794e

View file

@ -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)