mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2025-02-16 21:38:33 +00:00
fix binary hash func when binary is missing
This commit is contained in:
parent
cdb1485150
commit
904f728785
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue