def api_topic(request, board, pid, start=None): lily = Lily() try: topic = lily.fetch_topic(board, pid, start) except Exception as e: return build_response(exc=e) return build_response(topic.json())