Fixed message parser library

This commit is contained in:
Gerard Wagener 2010-01-18 14:26:06 +01:00
parent 1144fdee80
commit ddf2ede927

View file

@ -16,10 +16,10 @@ class AHAActions:
fp = open(filename,'r')
for i in fp.read().split('\n'):
try:
(key,value) = i.split('=')
(key,value) = i.split('=',1)
if msg.has_key(key) == False:
msg[key]=[]
msg[key].append(value)
msg[key].append(value)
except ValueError,e:
pass
fp.close()