Changeset 1792

Show
Ignore:
Timestamp:
10/24/06 02:03:03
Author:
miyagawa
Message:

Publish::Gmail: skip if enclosure local path doesn't exist, which means downloading the enclosure files failed. Reported by mayuki-a

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Publish/Gmail.pm

    r1783 r1792  
    156156 
    157157        for my $enclosure (grep $_->local_path, $entry->enclosures) { 
     158            if (!-e $enclosure->local_path) { 
     159                Plagger->context->log(warning => $enclosure->local_path . " doesn't exist. Skip"); 
     160                next; 
     161            } 
     162 
    158163            my %param = ( 
    159164                Type => $enclosure->type,