aboutsummaryrefslogtreecommitdiff
path: root/app/class/Media.php
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2020-04-28 21:25:51 +0200
committern-peugnet <n.peugnet@free.fr>2020-04-28 21:25:51 +0200
commit1619c194a32c1496f9015a491f5fa9dff350d47e (patch)
treeeb88861b02820ee43104e822603293ebf23c58bb /app/class/Media.php
parent3ba521e5d60a05510aa97d826215b7660d3dcb59 (diff)
downloadwcms-1619c194a32c1496f9015a491f5fa9dff350d47e.tar.gz
wcms-1619c194a32c1496f9015a491f5fa9dff350d47e.zip
fix: never catch LogicExceptions except in index
Diffstat (limited to 'app/class/Media.php')
-rw-r--r--app/class/Media.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/class/Media.php b/app/class/Media.php
index 7105830..312dd31 100644
--- a/app/class/Media.php
+++ b/app/class/Media.php
@@ -267,7 +267,8 @@ class Media extends Item
$timestamp = filemtime($this->getfulldir());
try {
$this->date = new DateTimeImmutable("@$timestamp");
- } catch (\Throwable $th) {
+ } catch (Exception $e) {
+ Logger::warningex($e);
$this->date = new DateTimeImmutable();
}
}