def get(self, _id): try: photos = Gallary.get_detail(_id) self.render('Admin/Gallary/detail.html', photos=photos, gid=_id) except Exception as e: print str(e)