From 08be0e5c6769ca67e3f990b09cf0be208fa2bc7d Mon Sep 17 00:00:00 2001 From: hannes Date: Wed, 30 Dec 2015 01:54:48 +0000 Subject: [PATCH] fixes this issue: https://quitter.se/notice/4344600 --- classes/File.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/classes/File.php b/classes/File.php index 22ff237162..24c4e6a232 100644 --- a/classes/File.php +++ b/classes/File.php @@ -424,7 +424,11 @@ class File extends Managed_DataObject if (self::hashurl($url) !== $this->urlhash) { // For indexing purposes, in case we do a lookup on the 'url' field. // also we're fixing possible changes from http to https, or paths - $this->updateUrl($url); + try { + $this->updateUrl($url); + } catch (ServerException $e) { + // + } } return $url; } @@ -656,4 +660,4 @@ class File extends Managed_DataObject echo "DONE.\n"; echo "Resuming core schema upgrade..."; } -} +} \ No newline at end of file -- 2.39.5