diff --git a/extend/ba/Depends.php b/extend/ba/Depends.php index 3f12e5d5..7f5f4579 100644 --- a/extend/ba/Depends.php +++ b/extend/ba/Depends.php @@ -75,7 +75,12 @@ class Depends */ public function getDepends(bool $devEnv = false) { - $content = $this->getContent(); + try { + $content = $this->getContent(); + } catch (Exception $e) { + return []; + } + if ($this->type == 'npm') { return $devEnv ? $content['devDependencies'] : $content['dependencies']; } else {