update so-yaml tests

This commit is contained in:
m0duspwnens
2024-02-06 16:15:54 -05:00
parent 9d62ade32e
commit b3f6153667
2 changed files with 57 additions and 2 deletions

View File

@@ -44,8 +44,11 @@ def appendItem(content, key, listItem):
else:
try:
content[key].append(listItem)
except TypeError:
print("The key provided is likely not a list. No action was taken on the file.")
except AttributeError:
print("The key provided is not a list. No action was taken on the file.")
return 1
except KeyError:
print("The key provided does not exist. No action was taken on the file.")
return 1
def append(args):