mirror of
https://github.com/gryf/slack-backup.git
synced 2026-11-22 13:26:55 +01:00
Fix for skipping messages for attachements.
This commit is contained in:
1 parent
641d67065c
commit
03972e609f
1 file changed
+1
-1
@@ -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