From 904f728785da076f561fcabbb3d7c4c1e5380211 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Mon, 27 Jul 2020 18:51:29 -0400 Subject: [PATCH] fix binary hash func when binary is missing --- archivebox/config/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/archivebox/config/__init__.py b/archivebox/config/__init__.py index 12579dbe..6a324021 100644 --- a/archivebox/config/__init__.py +++ b/archivebox/config/__init__.py @@ -492,6 +492,8 @@ def bin_path(binary: Optional[str]) -> Optional[str]: return shutil.which(os.path.expanduser(binary)) or binary def bin_hash(binary: Optional[str]) -> Optional[str]: + if binary is None: + return None abs_path = bin_path(binary) if abs_path is None: return None