def METHOD_NAME(permit_amendment_guid):
    permit_amendment = PermitAmendment.find_by_permit_amendment_guid(permit_amendment_guid)
    if not permit_amendment:
        raise BadRequest('No permit amendment found with that guid.')
    return permit_amendment