Skip to content

Commit

Permalink
Catch TableNotFoundException in MySQL delete
Browse files Browse the repository at this point in the history
  • Loading branch information
acbramley committed Mar 14, 2024
1 parent c9bce39 commit c69d1ff
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -161,6 +161,10 @@ public function get(): ?array
$this->driverConnection->delete($this->configuration['table_name'], ['delivered_at' => '9999-12-31 23:59:59']);
} catch (DriverException $e) {
// Ignore the exception
} catch (TableNotFoundException) {
if ($this->autoSetup) {
$this->setup();
}
}
}

Expand Down

0 comments on commit c69d1ff

Please sign in to comment.