Skip to content

Commit

Permalink
Minor fix to hash cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
haianhng31 committed Nov 2, 2024
1 parent a9db9d9 commit ad9a165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-threatexchange/threatexchange/cli/hash_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def init_argparse(cls, settings: CLISettings, ap: argparse.ArgumentParser) -> No
ap.add_argument(
"--rotations",
"--R",
action="store_true",
help="for photos, generate all 8 simple rotations",
)

Expand Down Expand Up @@ -132,7 +133,6 @@ def execute(self, settings: CLISettings) -> None:
hash_str = hasher.hash_from_file(temp_file_path)
if hash_str:
print(hasher.get_name(), hash_str)
temp_file_path.unlink() # Clean up the temporary file

else:
for file in self.files:
Expand Down

0 comments on commit ad9a165

Please sign in to comment.