No return parameter

main
bashrc 2026-08-01 14:55:33 +01:00
parent 8603f58922
commit f1b5542cba
1 changed files with 3 additions and 3 deletions

View File

@ -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']: