From ec7f7232f073cf1cd40928ccd2e4dc8c076f8bb1 Mon Sep 17 00:00:00 2001 From: Martin Styk Date: Mon, 26 May 2025 13:28:57 +0200 Subject: [PATCH] fix: skip directories Signed-off-by: Martin Styk --- print-hash.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/print-hash.py b/print-hash.py index c89e1b0..a8d0faa 100644 --- a/print-hash.py +++ b/print-hash.py @@ -7,6 +7,9 @@ print('Showing hash values of files to be uploaded:') for file_object in packages_dir.iterdir(): + if file_object.is_dir(): + continue + sha256 = hashlib.sha256() md5 = hashlib.md5() # noqa: S324; only use for reference blake2_256 = hashlib.blake2b(digest_size=256 // 8)