def _safe_find_iso_sr(session):
 sr_ref = _find_iso_sr(session)
 if (sr_ref is None):
  raise exception.NotFound(_('Cannot find SR of content-type ISO'))
 return sr_ref

def _safe_find_iso_sr ( session ) : sr_ref = _find_iso_sr ( session ) if ( sr_ref is None ) : raise exception . NotFound ( _ ( 'Cannot find SR of content-type ISO' ) ) return sr_ref
same as _find_iso_sr except raises a notfound exception if sr cannot be determined .