1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-23 22:27:27 +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:
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)