declare people firt

This commit is contained in:
Antonio J. Delgado 2022-05-02 16:49:19 +03:00
parent 828de0f3c9
commit c9b631c9fd

View file

@ -84,6 +84,7 @@ class image_classifier:
folder_date = 'unknown-time' folder_date = 'unknown-time'
dirname = os.path.dirname(os.path.realpath(file)) dirname = os.path.dirname(os.path.realpath(file))
filename = os.path.basename(file) filename = os.path.basename(file)
people = list()
if not os.access(file, os.R_OK): if not os.access(file, os.R_OK):
self._log.error(f"The file '{file}' is not readable.") self._log.error(f"The file '{file}' is not readable.")
else: else: