Fixed added check so it doesn't fail if there isn't data in a message when converting
This commit is contained in:
parent
887a7645d4
commit
60dd1de39d
@ -15,6 +15,7 @@ def update(self):
|
||||
if not os.path.exists(directory): os.makedirs(directory)
|
||||
new_messages = {}
|
||||
for message in content['messages']:
|
||||
if message:
|
||||
message_id = self.generate_uuid()
|
||||
if 'images' in message:
|
||||
if not os.path.exists(os.path.join(directory, message_id)): os.makedirs(os.path.join(directory, message_id))
|
||||
|
Loading…
x
Reference in New Issue
Block a user