Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

KeyError: Threads, Failed to execute script cmdline #29

Closed
goofyhsk opened this issue Aug 10, 2017 · 1 comment
Closed

KeyError: Threads, Failed to execute script cmdline #29

goofyhsk opened this issue Aug 10, 2017 · 1 comment

Comments

@goofyhsk
Copy link

New Error attempting on Windows,
With or without -di -dg

DMArchiver 0.1.6
Running on Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900
64 bit (AMD64)]

Authentication succeedeed.

Conversation ID not specified. Retrieving all the threads.
Traceback (most recent call last):
File "dmarchiver\cmdline.py", line 95, in
File "dmarchiver\cmdline.py", line 86, in main
File "dmarchiver\core.py", line 302, in get_threads
KeyError: 'threads'
Failed to execute script cmdline

DMArchiver 0.1.7
Running on Python 3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 19:28:18) [MSC v.1600
32 bit (Intel)]

Authentication succeedeed.

Press Ctrl+C at anytime to write the current conversation and skip to the next o
ne.
Keep it pressed to exit the script.

Conversation ID not specified. Retrieving all the threads.
Traceback (most recent call last):
File "dmarchiver\cmdline.py", line 107, in
File "dmarchiver\cmdline.py", line 96, in main
File "dmarchiver\core.py", line 302, in get_threads
KeyError: 'threads'
Failed to execute script cmdline

@Mincka
Copy link
Owner

Mincka commented Aug 10, 2017

Thanks for the error reporting.

Issue seems to be related to updated json structure with an additional "trusted" array.

I will look to update following lines to fix the issue. Hopefully, it will be enough.

https://github.com/Mincka/DMArchiver/blob/master/dmarchiver/core.py#L302
json['inner']['trusted']['threads']
https://github.com/Mincka/DMArchiver/blob/master/dmarchiver/core.py#L304
json['inner']['trusted']['has_more']

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants