Skip to content

Commit

Permalink
fix E721
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Sep 5, 2023
1 parent ac2f83b commit e7f8647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compliance_checker/cf/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def get_safe(dict_instance, keypath, default=None):
"""
try:
obj = dict_instance
keylist = keypath if type(keypath) is list else keypath.split(".")
keylist = keypath if isinstance(keypath, list) else keypath.split(".")
for key in keylist:
obj = obj[key]
return obj
Expand Down

0 comments on commit e7f8647

Please sign in to comment.