Skip to content

Commit

Permalink
fix: handle missing files import (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio authored Dec 1, 2024
1 parent 6d491ff commit 6bfd7c7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ public function handle(): void
$path = $this->scheduledJob->getSourcePath("{$this->filename}.csv");

if (! $disk->exists($path)) {
throw new MissingSourceFileException($path);
// throw new MissingSourceFileException($path);
logger()->warning('Missing source file', ['path' => $path]);

return;
}

$reader = Reader::createFromStream($disk->readStream($path));
Expand Down

0 comments on commit 6bfd7c7

Please sign in to comment.