mirror of
https://github.com/gryf/slack-backup.git
synced 2026-11-21 20:46:56 +01:00
Fix: Ignore deleted channels
This commit is contained in:
1 parent
93b0bc2dd7
commit
9aa79bfa89
1 file changed
+4
@@ -156,6 +156,10 @@ class Client(object):
|
|||||||
while True:
|
while True:
|
||||||
logging.debug("Fetching another portion of messages")
|
logging.debug("Fetching another portion of messages")
|
||||||
messages, latest = self._channels_history(channel, latest)
|
messages, latest = self._channels_history(channel, latest)
|
||||||
|
if messages is None:
|
||||||
|
# ignore deleted channels
|
||||||
|
break
|
||||||
|
|
||||||
result.extend(messages)
|
result.extend(messages)
|
||||||
|
|
||||||
for msg in messages:
|
for msg in messages:
|
||||||
|
|||||||
Reference in new issue
Block a user