@@ -, +, @@ exist. --- tools/picture-upload.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/tools/picture-upload.pl +++ a/tools/picture-upload.pl @@ -258,7 +258,10 @@ sub handle_file { $debug and warn "Image is of mimetype $mimetype"; my $dberror; if ($mimetype) { - $dberror = PutPatronImage( $cardnumber, $mimetype, $imgfile ); + $dberror = eval { + PutPatronImage( $cardnumber, $mimetype, $imgfile ); + }; + $dberror = $@ if $@; } 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 $count{count}++; --