Log exception instead of print_exc.

This commit is contained in:
voussoir 2021-09-12 21:19:30 -07:00
parent c397071586
commit a0f1b2d86d
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -1063,11 +1063,10 @@ class Photo(ObjectBase):
height=self.photodb.config['thumbnail_height'], height=self.photodb.config['thumbnail_height'],
**special **special
) )
except Exception:
traceback.print_exc()
else:
if success: if success:
return_filepath = hopeful_filepath return_filepath = hopeful_filepath
except Exception:
self.photodb.log.warning(traceback.format_exc())
if return_filepath != self.thumbnail: if return_filepath != self.thumbnail:
if return_filepath is None: if return_filepath is None: