.partition returns 3 values!
This commit is contained in:
parent
73ecb42ca9
commit
97b2158956
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
:usage: [1-5]d[1-20]
|
:usage: [1-5]d[1-20]
|
||||||
"""
|
"""
|
||||||
roll = event["args_split"][0].lower()
|
roll = event["args_split"][0].lower()
|
||||||
count, sides = roll.partition("d")
|
count, _, sides = roll.partition("d")
|
||||||
if not count.isdigit() or not sides.isdigit():
|
if not count.isdigit() or not sides.isdigit():
|
||||||
raise utils.EventError(ERROR_FORMAT)
|
raise utils.EventError(ERROR_FORMAT)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue