sebseager / slack-exporter

A Slack bot for exporting content from public and private channels.
GNU General Public License v3.0
132 stars 36 forks source link

KeyError: 'paging' on get_file_list() #15

Open nanpuhaha opened 2 years ago

nanpuhaha commented 2 years ago
D:\slack-exporter> python exporter.py -o ./json --json -c -r --files
...
Writing output to D:\slack-exporter\json\slack_export_10-31-2022_221332\channel_A1B2C3D4E5F.json
Writing output to D:\slack-exporter\json\slack_export_10-31-2022_221332\channel-replies_A1B2C3D4E5F.json
...
Traceback (most recent call last):
  File "D:\slack-exporter\exporter.py", line 547, in <module>
    save_files(out_dir)
  File "D:\slack-exporter\exporter.py", line 404, in save_files
    for file_info in get_file_list():
  File "D:\slack-exporter\exporter.py", line 152, in get_file_list
    total_pages = json_data["paging"]["pages"]
KeyError: 'paging'