Skip to content

Commit

Permalink
Merge pull request #21 from Keyhaku/group-by-null-field-fix
Browse files Browse the repository at this point in the history
Early exit from _get_value_by_path if the source dict is not nested -…
  • Loading branch information
aabouzaid committed Mar 25, 2018
2 parents b5e053d + 1a57f38 commit 4b404ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions netbox/netbox.py
Expand Up @@ -122,6 +122,7 @@ def _get_value_by_path(self, source_dict, key_path,
default=default, error_message=error_message)
else:
key_value = source_dict[key]
break

# How to set the key value, if the key was not found.
except KeyError as key_name:
Expand Down

0 comments on commit 4b404ff

Please sign in to comment.