|
|
@ -126,7 +126,7 @@ class Commands(object):
|
|
|
|
media = instagram.get_media()
|
|
|
|
media = instagram.get_media()
|
|
|
|
media = [m for m in media if [k for k in keywords \
|
|
|
|
media = [m for m in media if [k for k in keywords \
|
|
|
|
if m['type'] == 'Image' and k.lower() in m['title'].lower()]]
|
|
|
|
if m['type'] == 'Image' and k.lower() in m['title'].lower()]]
|
|
|
|
except (InstagramError, IndexError):
|
|
|
|
except (InstagramError, TypeError, KeyError):
|
|
|
|
return None
|
|
|
|
return None
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
return media
|
|
|
|
return media
|
|
|
|