carderne / signal-export

Export your Signal chats to markdown files with attachments
Other
446 stars 47 forks source link

KeyError: 'sent_at' #22

Closed ProactiveServices closed 3 years ago

ProactiveServices commented 3 years ago

Using script as at 23rd June 12:19, Python 3.8.5 on Kubuntu 20.01. Running against Signal Beta 5.6.0-beta1. Chugs through a lot of conversations then returns:

Traceback (most recent call last): File "./sigexport.py", line 104, in make_simple timestamp = msg["timestamp"] KeyError: 'timestamp'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "./sigexport.py", line 615, in main() File "/src/third-party/signal-export/signal-export/lib/python3.8/site-packages/click/core.py", line 1137, in call return self.main(args, kwargs) File "/src/third-party/signal-export/signal-export/lib/python3.8/site-packages/click/core.py", line 1062, in main rv = self.invoke(ctx) File "/src/third-party/signal-export/signal-export/lib/python3.8/site-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, ctx.params) File "/src/third-party/signal-export/signal-export/lib/python3.8/site-packages/click/core.py", line 763, in invoke return __callback(args, **kwargs) File "./sigexport.py", line 601, in main make_simple(dest, convos, contacts) File "./sigexport.py", line 107, in make_simple timestamp = msg["sent_at"] KeyError: 'sent_at'

carderne commented 3 years ago

Check the commit I just pushed, should fix it: 1d0ffb513744ef7dda228f2d6927fd0abfdbedfb

ProactiveServices commented 3 years ago

That was quick - works a charm! Thank you very much.