mirror of https://gitlab.com/bashrc2/epicyon
Handle exception in jsonld signature check
parent
116a696543
commit
a19822ce5a
|
@ -2378,8 +2378,13 @@ class JsonLdProcessor(object):
|
||||||
# hash bnode paths
|
# hash bnode paths
|
||||||
path_namer = UniqueNamer('_:b')
|
path_namer = UniqueNamer('_:b')
|
||||||
path_namer.get_name(bnode)
|
path_namer.get_name(bnode)
|
||||||
results.append(self._hash_paths(
|
try:
|
||||||
bnode, bnodes, namer, path_namer))
|
bnode_path = self._hash_paths(
|
||||||
|
bnode, bnodes, namer, path_namer)
|
||||||
|
results.append(bnode_path)
|
||||||
|
except BaseException:
|
||||||
|
print('WARN: jsonld bnode_path failed')
|
||||||
|
pass
|
||||||
|
|
||||||
# name bnodes in hash order
|
# name bnodes in hash order
|
||||||
cmp_hashes = cmp_to_key(lambda x, y: cmp(x['hash'], y['hash']))
|
cmp_hashes = cmp_to_key(lambda x, y: cmp(x['hash'], y['hash']))
|
||||||
|
|
Loading…
Reference in New Issue