Small automation script improvements

This commit is contained in:
Pinga 2024-03-05 15:56:52 +02:00
parent eb6e0e02af
commit 20565df739
2 changed files with 10 additions and 2 deletions

View file

@ -222,7 +222,7 @@ try {
$stmt_contact = null;
$dbh->commit();
$log->info('job finished successfully.');
} catch (PDOException $e) {
} catch (Exception $e) {
$dbh->rollBack();
$log->error('Database error: ' . $e->getMessage());
} catch (PDOException $e) {