From be84fc600e76e3962123b94bf14baea4a2e4f442 Mon Sep 17 00:00:00 2001 From: zimoun Date: Thu, 28 Jan 2021 00:46:01 +0100 Subject: gnu-maintenance: Fix error handling. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes partially . * guix/gnu-maintenance.scm (latest-release): Handle 'ftp-error'. Signed-off-by: Ludovic Courtès --- guix/gnu-maintenance.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'guix/gnu-maintenance.scm') diff --git a/guix/gnu-maintenance.scm b/guix/gnu-maintenance.scm index 08b2bcf758..0da6fc19b6 100644 --- a/guix/gnu-maintenance.scm +++ b/guix/gnu-maintenance.scm @@ -1,6 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès ;;; Copyright © 2012, 2013 Nikita Karetnikov +;;; Copyright © 2021 Simon Tournier ;;; ;;; This file is part of GNU Guix. ;;; @@ -361,7 +362,9 @@ return the corresponding signature URL, or #f it signatures are unavailable." (let loop ((directory directory) (result #f)) - (let* ((entries (ftp-list conn directory)) + (let* ((entries (catch 'ftp-error + (lambda _ (ftp-list conn directory)) + (const '()))) ;; Filter out things like /gnupg/patches. Filter out "w32" ;; directories as found on ftp.gnutls.org. -- cgit v1.2.3