Skip to content

Commit 6a0b1dc

Browse files
committed
Do not throw exception for unknown format tags, just use ""
1 parent c842f5c commit 6a0b1dc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/xitdb/util/conversion.clj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@
7070
(if (nil? v)
7171
(byte-array (-> jdb .md .getDigestLength))
7272
(let [digest (.md jdb)
73-
fmt-tag (or (some-> v fmt-tag-keyword fmt-tag-value)
74-
(throw (ex-info (str "Format tag not found for type: " (type v)) {})))]
73+
fmt-tag (or (some-> v fmt-tag-keyword fmt-tag-value) "")]
7574
;; add format tag
7675
(.update digest (.getBytes fmt-tag "UTF-8"))
7776
;; add the value

0 commit comments

Comments
 (0)