From 0f2c12b11c67abb216428a7c70a66889fea3cc9c Mon Sep 17 00:00:00 2001 From: bee-san Date: Fri, 21 May 2021 09:34:06 +0100 Subject: [PATCH] 0.2.5 --- pyproject.toml | 2 +- pywhat/identifier.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ae150ff..16cafef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pywhat" -version = "0.2.4" +version = "0.2.5" description = "What is that thing?" authors = ["Bee "] license = "GPLv3" diff --git a/pywhat/identifier.py b/pywhat/identifier.py index 615e95f..6704a08 100644 --- a/pywhat/identifier.py +++ b/pywhat/identifier.py @@ -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