Skip to content

Commit ef0014f

Browse files
authored
Update virtual.class.php
1 parent 7e48a26 commit ef0014f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

core/class/virtual.class.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static function createJeedomMonitor(){
3535
$eqLogic->setLogicalId('jeedom::monitor');
3636
try {
3737
$eqLogic->save();
38-
} catch (Exception $e) {
38+
} catch (Throwable $e) {
3939
$eqLogic->setName($eqLogic->getName() . ' remote ' . rand(0, 9999));
4040
$eqLogic->save();
4141
}
@@ -232,7 +232,7 @@ public static function templateParameters($_template = '') {
232232
if (is_json($content)) {
233233
$return += json_decode($content, true);
234234
}
235-
} catch (Exception $e) {
235+
} catch (Throwable $e) {
236236
}
237237
}
238238
if (isset($_template) && $_template != '') {
@@ -290,7 +290,7 @@ public function refresh() {
290290
$cmd->event($value);
291291
}
292292
}
293-
} catch (Exception $exc) {
293+
} catch (Throwable $exc) {
294294
log::add('virtual', 'error', __('Erreur pour', __FILE__) . ' ' . $this->getHumanName() . ' : ' . $exc->getMessage());
295295
}
296296
}
@@ -369,7 +369,7 @@ public function copyFromEqLogic($_eqLogic_id) {
369369
}
370370
try {
371371
$cmd->save();
372-
} catch (Exception $e) {
372+
} catch (Throwable $e) {
373373
}
374374
}
375375
$this->save();
@@ -427,7 +427,7 @@ public function copyCmdsFromEqLogic($_eqLogic_id, $cmdsSelected) {
427427
}
428428
try {
429429
$cmd->save();
430-
} catch (Exception $e) {
430+
} catch (Throwable $e) {
431431
}
432432
}
433433
$this->save();
@@ -555,7 +555,7 @@ public function execute($_options = null) {
555555
$result = str_replace('"', '', $result);
556556
}
557557
return $result;
558-
} catch (Exception $e) {
558+
} catch (Throwable $e) {
559559
log::add('virtual', 'info', $e->getMessage());
560560
return $this->getConfiguration('calcul');
561561
}
@@ -597,7 +597,7 @@ public function execute($_options = null) {
597597
if (is_object($cmd)) {
598598
try {
599599
$cmd->execCmd($_options);
600-
} catch (\Exception $e) {
600+
} catch (Throwable $e) {
601601
}
602602
}
603603
}

0 commit comments

Comments
 (0)