def get_almanac_by_slug(almanac_slug): try: return Almanac.get_by_slug(almanac_slug) except exc.NoResultFound: abort(404)