Skip to content
Snippets Groups Projects
Commit 50f868a0 authored by Allen Gilliland's avatar Allen Gilliland
Browse files

add a try/catch when we update the sample dataset so that failures don't cascade to other code.

parent 1544b6da
No related branches found
No related tags found
No related merge requests found
......@@ -34,4 +34,7 @@
(defn update-sample-dataset-if-needed! []
;; TODO - it would be a bit nicer if we skipped this when the data hasn't changed
(when-let [db (db/sel :one Database :is_sample true)]
(driver/sync-database! db)))
(try
(driver/sync-database! db)
(catch Throwable e
(log/error (format "Failed to update sample dataset: %s" (.getMessage e)))))))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment