Daniel Brötzmann pushed to branch master at gajim / gajim

Commits:

1 changed file:

Changes:

  • gajim/common/preview.py
    ... ... @@ -531,7 +531,10 @@ def _on_thumb_write_finished(_result: bool,
    531 531
     
    
    532 532
             if error is not None:
    
    533 533
                 log.error('%s: %s', preview.thumb_path.name, error)
    
    534
    -            return
    
    534
    +            if not preview.thumb_exists:
    
    535
    +                # Generating a preview can fail if the file already exists
    
    536
    +                # Only abort if thumbnail has not been stored in preview
    
    537
    +                return
    
    535 538
     
    
    536 539
             log.info('Thumbnail stored: %s ', preview.thumb_path.name)
    
    537 540