Skip to content
This repository was archived by the owner on Jan 16, 2026. It is now read-only.
This repository was archived by the owner on Jan 16, 2026. It is now read-only.

TypeError: argument of type 'NoneType' is not iterable #43

@ammario

Description

@ammario
root@bot:~/slack-autoarchive# docker run -e SLACK_TOKEN=xxxxx autoarchive
2020-04-09 23:40:35,604 - INFO - THIS IS A DRY RUN. NO CHANNELS ARE ACTUALLY ARCHIVED.
.Traceback (most recent call last):
  File "slack_autoarchive.py", line 253, in <module>
    CHANNEL_REAPER.main()
  File "slack_autoarchive.py", line 241, in main
    channel_disused = self.is_channel_disused(
  File "slack_autoarchive.py", line 152, in is_channel_disused
    (last_message_datetime, is_user) = self.get_last_message_timestamp(
  File "slack_autoarchive.py", line 124, in get_last_message_timestamp
    if 'messages' not in channel_history:
TypeError: argument of type 'NoneType' is not iterable

Same happens when calling script directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions