Revert "Return none if a schema path is not found"

This reverts commit b1fcf6a4a5.
This commit is contained in:
Joshua Boniface 2021-07-05 23:16:39 -04:00
parent b1fcf6a4a5
commit c45804e8c1
1 changed files with 1 additions and 2 deletions

View File

@ -700,8 +700,7 @@ class ZKSchema(object):
base_path = ''
sub_path = self.schema.get(itype).get('.'.join(ipath))
if sub_path is None:
# We didn't find the path we're looking for, so we don't want to do anything
return None
sub_path = ''
return f'{base_path}/{item}{sub_path}'
# Get keys of a schema location