Fixed bug that broke recharge powers from file

This commit is contained in:
Anna Rose 2012-07-06 15:38:31 -04:00
parent 5a08d943bb
commit 23de097725

View File

@ -693,11 +693,12 @@ def combatgroups_from_file(filename):
if var == 'recharge':
recharge = {}
recharge['used'] = False
info = var.split('|')
info = value.split('|')
try:
recharge['name'] = info[0].strip()
recharge['value'] = int(info[1])
except ValueError:
except (ValueError, IndexError):
print 'Error: Bad syntax in recharge power. Ignoring'
continue