From f052310dc2d73058d9a614c9cd67fa91b3864bf3 Mon Sep 17 00:00:00 2001 From: Brian McLachlin Date: Wed, 2 Nov 2016 09:29:23 -0400 Subject: [PATCH] Replaced empty catch with finally --- src/Illuminate/Queue/Worker.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Illuminate/Queue/Worker.php b/src/Illuminate/Queue/Worker.php index b50960b5ed02..7fa28f9b27aa 100644 --- a/src/Illuminate/Queue/Worker.php +++ b/src/Illuminate/Queue/Worker.php @@ -308,10 +308,9 @@ protected function failJob($connectionName, $job, $e) $job->delete(); $job->failed($e); - } catch (Exception $exception) { + } finally { + $this->raiseFailedJobEvent($connectionName, $job, $e); } - - $this->raiseFailedJobEvent($connectionName, $job, $e); } /**