From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id KPd3CbsCRmdnCQEAe85BDQ:P1 (envelope-from ) for ; Tue, 26 Nov 2024 17:17:47 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id KPd3CbsCRmdnCQEAe85BDQ (envelope-from ) for ; Tue, 26 Nov 2024 18:17:47 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=uu8l9gTz; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=djtxEEzK; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1732641467; a=rsa-sha256; cv=none; b=FHDP8F7s1CvlcaouxdxZ8eKIU+7a/psKDAodLqtH0MH9fGuAs69BaA1XYjbVhKy0+YsD9v bK8jj9nt/pnypB0L/HRprkABU6i9n8hAzyVXXpzdxlrgO9TULsqu1cTfCVqWEpNQbB66lj ki+8b7RHd59Ts5Nm9YZmVT99LTW/cyMAMrCbiUfs7TuR4V0j3VLjmKO/QIaOzoXqSkvWqm t4oNQvqNgZ4O/LR8dWwFZ3ObY3gZ6yquY4qO3eFZcZLXjra/shfiAh+TiUESW50Tz0KIPv FRO/W7JIRwRFfn9F0meK5OtzTgcWcyNROX2wVK6HOLniQ+YBt+EI29VQbvrJvQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=uu8l9gTz; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=djtxEEzK; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1732641467; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=gzHv5GpFGEPnWGb7VsInE9weZjm4ZM/N7Bpb4G3ZQxU=; b=MGKCDdTghWStSBJKUOtgz+XgBzO0rkras0cZCkKY7GHnGmDO5hmmQTmFscEmU8FH4N0/zj b6ZhxdiGp+qDtO1+B4/+Bzg/W9CJNj9a1N8wWxRbcO3I1UbYSUPtjMQgkshUPauvN+jysm sqdxNg5GEft/Z/bWduwT7mSco1zvJ2hzWWLuCDvfhcdBnAxQHvkdmbFPJHN8lBQD+C+tFf ZU0kYOfn07yL7OdS7yA0VFioogvhnObUdyBNEYt5kljbi5+0weqCNtJk8F0iB0Cn0r6USF AHUVqmNrir6Qh5jXDnJbq5kwfshmNp2N0J1OSQ0qMiP4Pa54yI+VsgChJhTvgw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 93FF251557 for ; Tue, 26 Nov 2024 18:17:46 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFzBV-0003cY-KP; Tue, 26 Nov 2024 12:17:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tFzBP-0003W6-4I for guix-patches@gnu.org; Tue, 26 Nov 2024 12:17:04 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tFzBO-0004vw-Rn for guix-patches@gnu.org; Tue, 26 Nov 2024 12:17:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=gzHv5GpFGEPnWGb7VsInE9weZjm4ZM/N7Bpb4G3ZQxU=; b=uu8l9gTzZY6w1GPyEBwYUe8EEyL2ooBmXdk9Xs28uOZNYqTeHtUcLjSaToPTraIPkTgZHBg4+64TIBEQWBFmEQLEGivFMNYGdEaoFKrSd/f64w4IW9+ZNuSct/8QCr4n7y9VQsiWM9srHGflgDGdcdJJr4LXK2iUbekaM70w0gsmL73RFhvJzAbFs/7c7GFEG690CVYn2tPhGEoE0BolmwfQ8rjXsiiInEtAEg6EQwF6TEz0zKmGGBk58j3dayOzlPQbfXrkoU5H+eNy4YsUgNizNqhsn/dOY/h1dBT9VjTtokydaZA58Qljc4Dgaelv1NDmidlCjiEvZgeMylps6g==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tFzBO-0005A1-03 for guix-patches@gnu.org; Tue, 26 Nov 2024 12:17:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74542] [PATCH 02/11] gnu-maintenance: =?UTF-8?Q?=E2=80=98import-html-release=E2=80=99_?= =?UTF-8?Q?doesn=E2=80=99t?= abort upon HTTP 404. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 26 Nov 2024 17:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74542 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Simon Tournier Cc: Christopher Baines , Josselin Poiret , Tobias Geerinckx-Rice , Mathieu Othacehe , 74542@debbugs.gnu.org Received: via spool by 74542-submit@debbugs.gnu.org id=B74542.173264141119809 (code B ref 74542); Tue, 26 Nov 2024 17:17:01 +0000 Received: (at 74542) by debbugs.gnu.org; 26 Nov 2024 17:16:51 +0000 Received: from localhost ([127.0.0.1]:51009 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFzBC-00059O-NR for submit@debbugs.gnu.org; Tue, 26 Nov 2024 12:16:51 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48598) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFzBB-000598-Ie for 74542@debbugs.gnu.org; Tue, 26 Nov 2024 12:16:49 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tFzB4-0004su-A8; Tue, 26 Nov 2024 12:16:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=gzHv5GpFGEPnWGb7VsInE9weZjm4ZM/N7Bpb4G3ZQxU=; b=djtxEEzKbNemz+WMADjK Qv5mRBoZ6HKK9QxNCb6BOFfKzcjbKg/uBLKmWQi9M+o2/NbIM14IlXAKzGhW6p3YzoVSJh+RKyiQ4 27AbN7MDW/wb2UtBuAVmNRgCUnFuFu684al/nH+paxqZP8D3gmozZSBvuG/+P1te3K5DPscybDNsz zacs4kyHbfAXwnzEoNw3oJGJyS1XBl8+iiHkxxykW8W87MvcNINLJ+s9O7k3U2jGkXiEvYV+33r+U L0K2/F06/3SRCF9lhgixOmoXaCkyAY7Sx2EaCK4cs/g1Ti3nmZPnK1JNkP5pfb26sLgBDaH/qckP6 J01huV6sBk/jyg==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <87v7wa2fr5.fsf@gmail.com> (Simon Tournier's message of "Tue, 26 Nov 2024 16:09:50 +0100") References: <92c108d975939b5dece3fb86ac7bce1edaf619a4.1732615193.git.ludo@gnu.org> <87v7wa2fr5.fsf@gmail.com> Date: Tue, 26 Nov 2024 18:16:38 +0100 Message-ID: <87frndapah.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 93FF251557 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -5.99 X-Spam-Score: -5.99 X-TUID: nGdZl8NHt9nw Simon Tournier skribis: > On Tue, 26 Nov 2024 at 11:33, Ludovic Court=C3=A8s wrote: > >> + #:use-module (srfi srfi-34) > > [...] > >> + (guard (c ((http-get-error? c) >> + (warning (G_ "failed to download '~a': ~a (~a)~%") >> + url (http-get-error-code c) >> + (http-get-error-reason c)) >> + '())) >> + (let* ((uri (string->uri url)) >> + (port (http-fetch/cached uri #:ttl 3600)) >> + (sxml (html->sxml port))) >> + (close-port port) >> + (delete-duplicates (html-links sxml))))) > > I=E2=80=99m always confused by which framework for exception does the pro= ject > rely on? There is old =E2=80=99catch=E2=80=99 and =E2=80=99throw=E2=80= =99 then sometimes new > =E2=80=99with-exception-handler=E2=80=99 and =E2=80=99raise=E2=80=99. An= d also SRFI 34. > > What=E2=80=99s the preferred convention? My take: SRFI-34. Before 3.0 we had to use =E2=80=98catch=E2=80=99 for key= +args exceptions, which is why it=E2=80=99s still used a lot. Hopefully it=E2=80=99ll get more homogeneous over time. :-) Ludo=E2=80=99.