mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2025-01-31 03:16:42 +01:00
#4: Remove re-thrown ModelNotFoundException
This commit is contained in:
parent
b7f2b62587
commit
214880ec2c
1 changed files with 1 additions and 5 deletions
|
@ -226,11 +226,7 @@ class Playlist extends Model
|
|||
continue;
|
||||
}
|
||||
|
||||
try {
|
||||
$trackFile = $track->trackFiles()->where('format', $format)->firstOrFail();
|
||||
} catch (ModelNotFoundException $e) {
|
||||
throw $e;
|
||||
}
|
||||
$trackFile = $track->trackFiles()->where('format', $format)->firstOrFail();
|
||||
|
||||
if ($trackFile->expires_at != null && File::exists($trackFile->getFile())) {
|
||||
$cachedCount++;
|
||||
|
|
Loading…
Reference in a new issue