From 97b2158956b97d248c9cca34b4103b6427bbed95 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 17 Nov 2018 12:19:32 +0000 Subject: .partition returns 3 values! --- modules/dice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/dice.py b/modules/dice.py index 0505bea6..8923c51c 100644 --- a/modules/dice.py +++ b/modules/dice.py @@ -11,7 +11,7 @@ class Module(ModuleManager.BaseModule): :usage: [1-5]d[1-20] """ roll = event["args_split"][0].lower() - count, sides = roll.partition("d") + count, _, sides = roll.partition("d") if not count.isdigit() or not sides.isdigit(): raise utils.EventError(ERROR_FORMAT) -- cgit v1.3.1-10-gc9f91