Skip to content

Commit 4d3bc7f

Browse files
author
Viktor Sevch
committed
MC-39340: Improve image upload
1 parent 21c75ec commit 4d3bc7f

File tree

1 file changed

+1
-1
lines changed
  • lib/internal/Magento/Framework/Image/Adapter

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Image/Adapter/Gd2.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function open($filename)
7575
$this->imageDestroy();
7676
try {
7777
$this->_imageHandler = call_user_func($this->_getCallback('create'), $this->_fileName);
78-
} catch (\Exception $ex) {
78+
} catch (\Throwable $ex) {
7979
throw new LocalizedException(__('Unsupported image format.'));
8080
}
8181
}

0 commit comments

Comments
 (0)