diff --git a/backend/src/app/http/debug.clj b/backend/src/app/http/debug.clj index a90520424..0c534a192 100644 --- a/backend/src/app/http/debug.clj +++ b/backend/src/app/http/debug.clj @@ -100,7 +100,10 @@ (if (and data project-id) (let [fname (str "imported-file-" (dt/now)) - file-id (uuid/uuid (-> params :file :filename)) + file-id (try + (uuid/uuid (-> params :file :filename)) + (catch Exception err + (uuid/next))) file (db/exec-one! pool (sql/select :file {:id file-id}))] (if file (db/update! pool :file