fix extract look file check

This commit is contained in:
Ondrej Samohel 2020-11-27 12:30:39 +01:00 committed by Ondřej Samohel
parent 3b6eec2b5b
commit ae657498e3
No known key found for this signature in database
GPG key ID: 02376E18990A97C6

View file

@ -350,7 +350,7 @@ class ExtractLook(pype.api.Extractor):
if existing and not force:
self.log.info("Found hash in database, preparing hardlink..")
source = next((p for p in existing if os.path.exists(p)), None)
if filepath:
if source:
return source, HARDLINK, texture_hash
else:
self.log.warning(