mirror of https://gitlab.com/bashrc2/epicyon
No return parameter
parent
8603f58922
commit
f1b5542cba
|
|
@ -3879,7 +3879,7 @@ class JsonLdProcessor(object):
|
||||||
print('EX: Cyclical context definition detected. ' +
|
print('EX: Cyclical context definition detected. ' +
|
||||||
'context: ' + str(local_ctx) + ' ' +
|
'context: ' + str(local_ctx) + ' ' +
|
||||||
'term: ' + str(term))
|
'term: ' + str(term))
|
||||||
return {}
|
return
|
||||||
|
|
||||||
# now defining term
|
# now defining term
|
||||||
defined[term] = False
|
defined[term] = False
|
||||||
|
|
@ -3889,13 +3889,13 @@ class JsonLdProcessor(object):
|
||||||
'Invalid JSON-LD syntax; keywords cannot be overridden. ' +
|
'Invalid JSON-LD syntax; keywords cannot be overridden. ' +
|
||||||
'context: ' + str(local_ctx) + ' ' +
|
'context: ' + str(local_ctx) + ' ' +
|
||||||
'term: ' + str(term))
|
'term: ' + str(term))
|
||||||
return {}
|
return
|
||||||
|
|
||||||
if term == '':
|
if term == '':
|
||||||
print('EX: Invalid JSON-LD syntax; ' +
|
print('EX: Invalid JSON-LD syntax; ' +
|
||||||
'a term cannot be an empty string. ' +
|
'a term cannot be an empty string. ' +
|
||||||
'context: ' + str(local_ctx))
|
'context: ' + str(local_ctx))
|
||||||
return {}
|
return
|
||||||
|
|
||||||
# remove old mapping
|
# remove old mapping
|
||||||
if term in active_ctx['mappings']:
|
if term in active_ctx['mappings']:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue