diff options
Diffstat (limited to 'hostinfo/utils.py')
-rw-r--r-- | hostinfo/utils.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hostinfo/utils.py b/hostinfo/utils.py index cfd8de3..379b9fa 100644 --- a/hostinfo/utils.py +++ b/hostinfo/utils.py @@ -2,6 +2,9 @@ def group_by(value, group, default=None, display_check=None, print_value=None): groups = {} + if value is None: + return groups + for elem in value: key = None if group in elem: |