aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/Thumbnailer.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/Thumbnailer.php')
-rw-r--r--application/Thumbnailer.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/application/Thumbnailer.php b/application/Thumbnailer.php
index d5f5ac28..5aec23c8 100644
--- a/application/Thumbnailer.php
+++ b/application/Thumbnailer.php
@@ -4,7 +4,6 @@ namespace Shaarli;
4 4
5use Shaarli\Config\ConfigManager; 5use Shaarli\Config\ConfigManager;
6use WebThumbnailer\Application\ConfigManager as WTConfigManager; 6use WebThumbnailer\Application\ConfigManager as WTConfigManager;
7use WebThumbnailer\Exception\WebThumbnailerException;
8use WebThumbnailer\WebThumbnailer; 7use WebThumbnailer\WebThumbnailer;
9 8
10/** 9/**
@@ -27,6 +26,7 @@ class Thumbnailer
27 'instagram.com', 26 'instagram.com',
28 'pinterest.com', 27 'pinterest.com',
29 'pinterest.fr', 28 'pinterest.fr',
29 'soundcloud.com',
30 'tumblr.com', 30 'tumblr.com',
31 'deviantart.com', 31 'deviantart.com',
32 ]; 32 ];
@@ -89,7 +89,7 @@ class Thumbnailer
89 89
90 try { 90 try {
91 return $this->wt->thumbnail($url); 91 return $this->wt->thumbnail($url);
92 } catch (WebThumbnailerException $e) { 92 } catch (\Throwable $e) {
93 // Exceptions are only thrown in debug mode. 93 // Exceptions are only thrown in debug mode.
94 error_log(get_class($e) . ': ' . $e->getMessage()); 94 error_log(get_class($e) . ': ' . $e->getMessage());
95 } 95 }