mirror of https://gitlab.com/bashrc2/epicyon
debug
parent
5cd720c77f
commit
29f665a116
1
utils.py
1
utils.py
|
@ -392,6 +392,7 @@ def get_media_descriptions_from_post(post_json_object: {}) -> str:
|
||||||
descriptions = ''
|
descriptions = ''
|
||||||
for attach in this_post_json['attachment']:
|
for attach in this_post_json['attachment']:
|
||||||
if not isinstance(attach, dict):
|
if not isinstance(attach, dict):
|
||||||
|
print('WARN: attachment is not a dict ' + str(attach))
|
||||||
continue
|
continue
|
||||||
if not attach.get('name'):
|
if not attach.get('name'):
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue