Skip to content

Commit

Permalink
Added more exception captureres
Browse files Browse the repository at this point in the history
  • Loading branch information
freestream committed Aug 4, 2020
1 parent 90e33e8 commit 93d709d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Model/Labour.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,15 @@ public function execute() : void

$this->logger->critical($e);
} catch (\Exception $e) {
$this->setAsFailed();
$this->reschedule();

$this->logger->critical($e);
} catch (\ParseError $e) {
$this->reschedule();

$this->logger->critical($e);
} catch (\Error $e) {
$this->reschedule();

$this->logger->critical($e);
}
Expand Down

0 comments on commit 93d709d

Please sign in to comment.