Skip to content

Commit

Permalink
this function can sometimes apply on None
Browse files Browse the repository at this point in the history
  • Loading branch information
boogheta committed Sep 12, 2019
1 parent fbd964f commit f56c7fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hyphe_backend/core.tac
Original file line number Diff line number Diff line change
Expand Up @@ -2461,7 +2461,9 @@ class Memory_Structure(customJSONRPC):
# MongoDB considers dots as hierarchy separator in objects and refuses them in object's keys
if key and "." in key:
key = key.replace(".", "_")
return key.strip()
if key:
key = key.strip()
return key

@inlineCallbacks
def jsonrpc_rebuild_tags_dictionary(self, corpus=DEFAULT_CORPUS):
Expand Down

0 comments on commit f56c7fe

Please sign in to comment.