aboutsummaryrefslogtreecommitdiff
path: root/app/class/Media.php
diff options
context:
space:
mode:
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();
}
}