mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
Merge remote-tracking branch 'upstream/master' into whiteboards
This commit is contained in:
@@ -11,8 +11,9 @@
|
||||
[frontend.state :as state]
|
||||
[logseq.graph-parser.block :as gp-block]
|
||||
[logseq.graph-parser.config :as gp-config]
|
||||
[logseq.graph-parser.property :as gp-property]
|
||||
[logseq.graph-parser.mldoc :as gp-mldoc]
|
||||
[logseq.graph-parser.property :as gp-property]))
|
||||
[lambdaisland.glogi :as log]))
|
||||
|
||||
(defn extract-blocks
|
||||
"Wrapper around logseq.graph-parser.block/extract-blocks that adds in system state
|
||||
@@ -27,6 +28,7 @@ and handles unexpected failure."
|
||||
:db (db/get-db (state/get-current-repo))
|
||||
:date-formatter (state/get-date-formatter)})
|
||||
(catch :default e
|
||||
(log/error :exception e)
|
||||
(Sentry/captureException e)
|
||||
(notification/show! "An unexpected error occurred during block extraction." :error)
|
||||
[])))
|
||||
|
||||
Reference in New Issue
Block a user