Fix warning on uploading local file that does not exist

This commit is contained in:
allegroai 2020-11-03 10:50:51 +02:00
parent c328fbf345
commit e37d6a4155

View File

@ -301,7 +301,7 @@ class UploadEvent(MetricsEventAdapter):
if output is None:
from ...debugging.log import LoggerRoot
LoggerRoot.get_base_logger().warning(
'Skipping upload, could not find object file \'{}\''.format(output.as_posix()))
'Skipping upload, could not find object file \'{}\''.format(self._local_image_path))
return None
return self.FileEntry(