Skip to content

Commit

Permalink
0.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
bee-san committed May 21, 2021
1 parent 5625b20 commit 0f2c12b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pywhat"
version = "0.2.4"
version = "0.2.5"
description = "What is that thing?"
authors = ["Bee <[email protected]>"]
license = "GPLv3"
Expand Down
2 changes: 1 addition & 1 deletion pywhat/identifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def identify(self, text: str, api=False) -> dict:
identify_obj = {}

magic_numbers = None
if api and self.file_exists(text):
if not api and self.file_exists(text):
magic_numbers = self.file_sig.open_binary_scan_magic_nums(text)
text = self.file_sig.open_file_loc(text)
identify_obj["File Signatures"] = magic_numbers
Expand Down

0 comments on commit 0f2c12b

Please sign in to comment.