Skip to content

Commit 7b859c2

Browse files
authored
add try catch
1 parent b965c1c commit 7b859c2

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

core/class/script.class.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,12 @@ public function postSave() {
120120
if ($this->getLogicalId() == 'refresh' || $this->getEqlogic()->getIsEnable() != 1) {
121121
return;
122122
}
123-
$this->refreshInfo();
123+
try {
124+
$this->refreshInfo();
125+
} catch (\Throwable $th) {
126+
log::add('script','error',$th->getMessage());
127+
}
128+
124129
}
125130

126131
private function replaceTags($request) {

0 commit comments

Comments
 (0)