Skip to content

Commit 0f2c12b

Browse files
committed
0.2.5
1 parent 5625b20 commit 0f2c12b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pywhat"
3-
version = "0.2.4"
3+
version = "0.2.5"
44
description = "What is that thing?"
55
authors = ["Bee <[email protected]>"]
66
license = "GPLv3"

pywhat/identifier.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def identify(self, text: str, api=False) -> dict:
1616
identify_obj = {}
1717

1818
magic_numbers = None
19-
if api and self.file_exists(text):
19+
if not api and self.file_exists(text):
2020
magic_numbers = self.file_sig.open_binary_scan_magic_nums(text)
2121
text = self.file_sig.open_file_loc(text)
2222
identify_obj["File Signatures"] = magic_numbers

0 commit comments

Comments
 (0)