.partition returns 3 values!

This commit is contained in:
jesopo 2018-11-17 12:19:32 +00:00
parent 73ecb42ca9
commit 97b2158956

View file

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