Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 'pretty type' - cant' export slack channel to pdf #3

Closed
Lionheart-Crow opened this issue Dec 2, 2020 · 4 comments
Closed

Error 'pretty type' - cant' export slack channel to pdf #3

Lionheart-Crow opened this issue Dec 2, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@Lionheart-Crow
Copy link

Lionheart-Crow commented Dec 2, 2020

When trying to download the conversation from one channel I get the following result:

Fetched a total of 1,141 messages from 252 threads
Traceback (most recent call last):
  File "c:\users\fgh\anaconda3\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\users\fgh\anaconda3\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\fgh\anaconda3\Scripts\slackchannel2pdf.exe\__main__.py", line 7, in <module>
  File "c:\users\fgh\anaconda3\lib\site-packages\slackchannel2pdf\run.py", line 190, in main
    exporter.run(
  File "c:\users\fgh\anaconda3\lib\site-packages\slackchannel2pdf\slackchannel2pdf.py", line 1519, in run
    self._write_messages_to_pdf(document, messages, threads)
  File "c:\users\fgh\anaconda3\lib\site-packages\slackchannel2pdf\slackchannel2pdf.py", line 1156, in _write_messages_to_pdf
    last_user_id = self._parse_message_and_write_to_pdf(
  File "c:\users\fgh\anaconda3\lib\site-packages\slackchannel2pdf\slackchannel2pdf.py", line 870, in _parse_message_and_write_to_pdf
    + file["pretty_type"]
KeyError: 'pretty_type'
@ErikKalkoken ErikKalkoken added the bug Something isn't working label Dec 7, 2020
@ErikKalkoken
Copy link
Owner

I deployed a new version (1.1.4) that should be able to handle a missing pretty_type.

Would be great if you could retest and five me feedback if the fix works for you. Thanks!

@ErikKalkoken
Copy link
Owner

User confirmed the bug is fixed

@Xarlos89
Copy link

Xarlos89 commented Apr 4, 2022

Also ran into this issue. I see there is a fix available. The project is on 1.1.3, where can we find 1.1.4?

@ErikKalkoken
Copy link
Owner

@Xarlos89 Hey. The current available version is 1.3.1 (not 1.1.3), which includes this fix. If you got a similar error, this might be a new issue. Happy to look into it if you can provide me with an example JSON of the message that is causing it. Would also prefer if you open a new issue for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants