]> git.mxchange.org Git - friendica.git/blobdiff - src/Contact/Avatar.php
Increased performance when fetching the parent
[friendica.git] / src / Contact / Avatar.php
index 4843e5d37c835ed0e105c797e6d2876262e06342..299c2639947e6b32533ba0b99e930e217b1c63b0 100644 (file)
@@ -75,8 +75,8 @@ class Avatar
 
                try {
                        $fetchResult = HTTPSignature::fetchRaw($avatar, 0, [HttpClientOptions::ACCEPT_CONTENT => [HttpClientAccept::IMAGE]]);
-               } catch (\Throwable $th) {
-                       Logger::notice('Avatar is invalid', ['avatar' => $avatar, 'error' => $th]);
+               } catch (\Exception $exception) {
+                       Logger::notice('Avatar is invalid', ['avatar' => $avatar, 'exception' => $exception]);
                        return $fields;
                }