From b947b4948deaab2c06a10f0875149b81a32b734a Mon Sep 17 00:00:00 2001 From: VitaliyS Date: Mon, 20 Apr 2015 14:40:18 +0300 Subject: [PATCH] fix: wot.py --- plugins/wot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/wot.py b/plugins/wot.py index 887bb9b..db3147b 100644 --- a/plugins/wot.py +++ b/plugins/wot.py @@ -238,7 +238,9 @@ def wot(type, jid, nick, text): expWins = 0 for t in vdata[player_id]: - + if not extv.has_key(t['tank_id']): + continue + tank_battle = t['all']['battles'] expDmg += tank_battle * extv[t['tank_id']]['expDamage']