From dd1e9ecb324abb37385a38c672475d7e5fb80170 Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 1 Mar 2017 21:02:47 +0100 Subject: [PATCH] This fixes #599 --- app/Console/Commands/Import.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Console/Commands/Import.php b/app/Console/Commands/Import.php index 91ad4b1b29..a472cd4a55 100644 --- a/app/Console/Commands/Import.php +++ b/app/Console/Commands/Import.php @@ -58,9 +58,11 @@ class Import extends Command { Log::debug('Start start-import command'); $jobKey = $this->argument('key'); - $job = ImportJob::whereKey($jobKey)->first(); + $job = ImportJob::where('key', $jobKey)->first(); if (is_null($job)) { $this->error(sprintf('No job found with key "%s"', $jobKey)); + + return; } if (!$this->isValid($job)) { Log::error('Job is not valid for some reason. Exit.');