Skip to content

Commit

Permalink
Merge commit 'refs/pull/487/head' of github.com:alchemy-fr/phraseanet…
Browse files Browse the repository at this point in the history
…-services into w2445
  • Loading branch information
nmaillat committed Nov 18, 2024
2 parents 4745f1d + ce0e489 commit 96c29c0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions databox/api/src/Integration/RemoveBg/RemoveBgClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,11 @@ public function getBgRemoved(File $file, string $apiKey): string
}
fclose($fileHandler);
} catch (\Throwable $e) {
fclose($fileHandler);
@unlink($cacheFile);
if (isset($fileHandler)) {
fclose($fileHandler);
@unlink($cacheFile);
}

throw $e;
}

Expand Down

0 comments on commit 96c29c0

Please sign in to comment.