Merge remote-tracking branch 'upstream/master' into whiteboards

This commit is contained in:
Peng Xiao
2022-09-24 09:42:00 +08:00
124 changed files with 2089 additions and 1666 deletions

View File

@@ -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)
[])))