Vayu/skypelog — Issue #2: Timestamp problem with crash
Author: Knuckles
Created: 2011-11-21 06:44:58+00:00
State: open

While exporting my skypelog i get this crash:
Traceback (most recent call last):
File "skypelog.py", line 530, in
main()
File "skypelog.py", line 522, in main
dumpmsg_html()
File "skypelog.py", line 480, in dumpmsg_html
forskypedbbs(dumpmsg_html_helper, "chatmsg")
File "skypelog.py", line 411, in forskypedbbs
func(user, chatdbbs)
File "skypelog.py", line 464, in dumpmsg_html_helper
for r in msgdbb.records():
File "skypelog.py", line 98, in records
yield self.parserecord(rec)
File "skypelog.py", line 138, in parserecord
return SkypeMsg(SkypeDBB.parserecord(self, rec))
File "skypelog.py", line 172, in __init__
data[-2] = time.ctime(data[485])
KeyError: 485

if i change "time.ctime(data[485])" to "time.ctime(data.get(485, 0)) the programm does not crash. but than this messages appear where it crashed before:

"SkypeMsg: unknown field 0 = 0
SkypeMsg: unknown field 3857 = 6"