mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-20 18:05:19 -04: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
|
return shutil.which(os.path.expanduser(binary)) or binary
|
||||||
|
|
||||||
def bin_hash(binary: Optional[str]) -> Optional[str]:
|
def bin_hash(binary: Optional[str]) -> Optional[str]:
|
||||||
|
if binary is None:
|
||||||
|
return None
|
||||||
abs_path = bin_path(binary)
|
abs_path = bin_path(binary)
|
||||||
if abs_path is None:
|
if abs_path is None:
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue