Skip to content

Commit

Permalink
add try catch
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Oct 7, 2024
1 parent b965c1c commit 7b859c2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/class/script.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,12 @@ public function postSave() {
if ($this->getLogicalId() == 'refresh' || $this->getEqlogic()->getIsEnable() != 1) {
return;
}
$this->refreshInfo();
try {
$this->refreshInfo();
} catch (\Throwable $th) {
log::add('script','error',$th->getMessage());
}

}

private function replaceTags($request) {
Expand Down

0 comments on commit 7b859c2

Please sign in to comment.