[projects/pld-builder.new] Catch all exceptions.
arekm
arekm at pld-linux.org
Wed Feb 4 16:41:42 CET 2026
commit b57434f032c0577d47b5d1720ad997f881e4708a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Feb 4 16:41:31 2026 +0100
Catch all exceptions.
PLD_Builder/request_fetcher.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/PLD_Builder/request_fetcher.py b/PLD_Builder/request_fetcher.py
index 83229ae..51fe8d7 100644
--- a/PLD_Builder/request_fetcher.py
+++ b/PLD_Builder/request_fetcher.py
@@ -76,8 +76,8 @@ def fetch_queue(control_url):
f = gzip.GzipFile(fileobj = sio)
try:
fdata = f.read()
- except struct.error as e:
- log.alert("corrupted fetched queue.gz file")
+ except Exception as e:
+ log.alert(f"unable to read fetched queue.gz file: {e}")
sys.exit(1)
(signers, body) = gpg.verify_sig(fdata)
u = acl.user_by_email(signers)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/b57434f032c0577d47b5d1720ad997f881e4708a
More information about the pld-cvs-commit
mailing list