mirror of
https://github.com/gryf/slack-backup.git
synced 2025-12-17 19:40:21 +01:00
Fix for skipping messages for attachements.
This commit is contained in:
@@ -191,7 +191,7 @@ class Client(object):
|
|||||||
|
|
||||||
user = self._get_user(data)
|
user = self._get_user(data)
|
||||||
|
|
||||||
if not data['text'].strip():
|
if not any((data.get('attachments'), data['text'].strip())):
|
||||||
logging.info("Skipping message from `%s' since it's empty",
|
logging.info("Skipping message from `%s' since it's empty",
|
||||||
user.name)
|
user.name)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user