Log exception instead of print_exc.
This commit is contained in:
		
							parent
							
								
									c397071586
								
							
						
					
					
						commit
						a0f1b2d86d
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		|  | @ -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: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue