From 1815494ab95029d7aaad5ee9a3096503c1907b31 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Fri, 2 Nov 2018 11:33:07 +0100 Subject: [PATCH] Update tagging exception handling --- Blacklight/processing/ProcessReleases.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Blacklight/processing/ProcessReleases.php b/Blacklight/processing/ProcessReleases.php index 9f8a793d8..800ea3ac0 100755 --- a/Blacklight/processing/ProcessReleases.php +++ b/Blacklight/processing/ProcessReleases.php @@ -270,8 +270,9 @@ class ProcessReleases try { $taggedRelease = Release::find($release->id); $taggedRelease->tag($catId['tags']); - } catch(\Throwable $e) { + } catch (\Throwable $e) { //Just pass this part, tag is not created for some reason, exception is thrown and blocks release creation + continue; } $categorized++; if ($this->echoCLI) { @@ -623,8 +624,9 @@ class ProcessReleases try { $release = Release::find($releaseID); $release->tag($determinedCategory['tags']); - } catch(\Throwable $e) { + } catch (\Throwable $e) { //Just pass this part, tag is not created for some reason, exception is thrown and blocks release creation + continue; } if ($releaseID !== null) {