View | Details | Raw Unified | Return to bug 11917
Collapse All | Expand All

(-)a/tools/picture-upload.pl (-2 / +4 lines)
Lines 258-264 sub handle_file { Link Here
258
				$debug and warn "Image is of mimetype $mimetype";
258
				$debug and warn "Image is of mimetype $mimetype";
259
                my $dberror;
259
                my $dberror;
260
                if ($mimetype) {
260
                if ($mimetype) {
261
                    $dberror = PutPatronImage( $cardnumber, $mimetype, $imgfile );
261
                    $dberror = eval {
262
                        PutPatronImage( $cardnumber, $mimetype, $imgfile );
263
                    };
264
                    $dberror = $@ if $@;
262
                }
265
                }
263
                if ( !$dberror && $mimetype ) { # Errors from here on are fatal only to the import of a particular image, so don't bail, just note the error and keep going
266
                if ( !$dberror && $mimetype ) { # Errors from here on are fatal only to the import of a particular image, so don't bail, just note the error and keep going
264
					$count{count}++;
267
					$count{count}++;
265
- 

Return to bug 11917