catch the ObjectDoesNotExist exception. Reorg imports