diff --git a/image_classifier/image_classifier.py b/image_classifier/image_classifier.py index a66c689..94ac3f0 100755 --- a/image_classifier/image_classifier.py +++ b/image_classifier/image_classifier.py @@ -158,8 +158,7 @@ class image_classifier: def is_json(self, data): try: - result = json.loads(data) - self._log.debug(f"{result} is JSON data") + json.loads(data) except TypeError: return False return True @@ -204,8 +203,7 @@ class image_classifier: def is_image(self, file): try: - image_object = PIL.Image.open(file) - self._log.debug(f"{image_object} is an image for PIL") + PIL.Image.open(file) except OSError as error: self._log.debug(f"File '{file}' is not readable by PIL. {error}") return False diff --git a/setup.cfg b/setup.cfg index ac0fcab..7f8d321 100755 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = image_classifier -version = 0.0.7 +version = 0.0.8 [options] packages = image_classifier diff --git a/setup.py b/setup.py index 17585f1..6803daf 100755 --- a/setup.py +++ b/setup.py @@ -9,11 +9,12 @@ if os.access(requirements_file, os.R_OK): setuptools.setup( scripts=['image_classifier/image_classifier.py'], author="Antonio J. Delgado", - version='0.0.7', + version='0.0.8', name='image_classifier', author_email="antoniodelgado@susurrando.com", url="", - description="Find faces in images and add the names as metadata to the images. Move images to a folder withe the structure YYYY/MM/DD.", + description="""Find faces in images and add the names as metadata to the images. Move images to +a folder withe the structure YYYY/MM/DD.""", license="GPLv3", install_requires=requirements, keywords=["face-recognition", "face", "recognition", "classify", "images", "metadata"]