Commit 72d838cd authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

kernel: Correctly deal with invalid base16 strings in ";;guix download".

Previously we'd end up with an uncaught exception.

* guix-jupyter-kernel.scm (handle-download): Wrap
'base16-string->bytevector' in 'false-if-exception'.
parent 60a3e5c7
......@@ -329,7 +329,7 @@ HASH of type HASH-ALGO."
(lookup-hash-algorithm (string->symbol hash-algo)))
(define hash/bv
(base16-string->bytevector hash))
(false-if-exception (base16-string->bytevector hash)))
(define count
(proxy-state-execution-count state))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment