Skip to content

Commit 5ed4e36

Browse files
committed
fix
1 parent ef235ed commit 5ed4e36

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/cronjob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function execute()
4040
} else {
4141
$messages[] = 'snapshot not created for ' . $Url->getName() . ' [' . $Url->getId() . ']';
4242
}
43-
} catch (Exception $e) {
43+
} catch (rex_exception $e) {
4444
$messages[] = 'snapshot error for ' . $Url->getName() . ' [' . $Url->getId() . ']';
4545
break;
4646
}

pages/url.form.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,11 @@
100100
$id = $params['sql']->getLastId();
101101
if ($id && $id > 0) {
102102
$Url = Url::get($id);
103-
Index::createSnapshot($Url);
103+
try {
104+
Index::createSnapshot($Url);
105+
} catch (rex_exception $e) {
106+
// ignore
107+
}
104108
}
105109
});
106110

0 commit comments

Comments
 (0)