try:
keyword = Keyword.objects[:1].order_by('-created_at').get(keyword='myfilterkeyword')
except Keyword.DoesNotExist as e:
Logger.log(e)
For now I do it using the above way. Is this the optimal and right way to do it? Is exception handling the only way to detect missing data?