Closed yusefnapora closed 8 years ago
:+1:
in general this bit
if you use the multihash_ref helper it can let invalid strings through.
shouldn't happen but let's not worry about it right now (unless you're missing a "not" in there?)
oh yeah, I meant previously, that could happen. this branch fixes it :)
prevents an exception if a remote
__mediachain_asset__
in the translator output does not have auri
key. This can happen when all you have is a local asset without a remote asset uri. Now it will still add the local asset to ipfs and not die with aLookupException
Also validates the multihash in
MultihashReference.__init__
, since I discovered that if you use themultihash_ref
helper it can let invalid strings through.