0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00

Properly catch exceptions on image fetching.

This commit is contained in:
Andrey Antukh 2017-02-26 20:45:29 +01:00
parent db36c617bf
commit 3bb991da0b
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -343,6 +343,7 @@
(if existing
(rx/empty)
(->> (rp/req :fetch/image {:id id})
(rx/catch rp/client-error? #(rx/empty))
(rx/map :payload)
(rx/map image-fetched))))))