Skip to content

Commit

Permalink
KeyError on geBlob if error
Browse files Browse the repository at this point in the history
  • Loading branch information
dehann committed Feb 21, 2023
1 parent d815b95 commit c76462d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/navability/services/DataBlobs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function createDownloadEvent(
throw("Error: $(rootData["errors"])")
end
data = get(rootData,"data",nothing)
if data === nothing return "Error" end
if data === nothing || !haskey(data, "url") throw(KeyError("Cannot create download for $userId, requesting $blobId.\n$rootData")) end
urlMsg = get(data,"url","Error")
# TODO: What about marshalling?
return urlMsg
Expand Down

0 comments on commit c76462d

Please sign in to comment.