From 1619c194a32c1496f9015a491f5fa9dff350d47e Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Tue, 28 Apr 2020 21:25:51 +0200 Subject: fix: never catch LogicExceptions except in index --- app/class/Media.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/class/Media.php') 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(); } } -- cgit v1.2.3