From 2e084cc2a604a1409701e6fe18b71f71f3d5bf5b Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 15 Feb 2021 20:27:46 +0100 Subject: [PATCH] :bug: Add more generic error handing to svgparse. --- backend/src/app/svgparse.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/app/svgparse.clj b/backend/src/app/svgparse.clj index f9d658663..9f1662f2d 100644 --- a/backend/src/app/svgparse.clj +++ b/backend/src/app/svgparse.clj @@ -124,7 +124,7 @@ (try (with-open [istream (IOUtils/toInputStream data "UTF-8")] (xml/parse istream)) - (catch org.xml.sax.SAXParseException _e + (catch Exception _e (ex/raise :type :validation :code :invalid-svg-file))))