Skip to content

Commit

Permalink
fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
escapewindow committed Jan 13, 2018
1 parent 81dd0d2 commit aa8c36f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scriptworker/utils.py
Expand Up @@ -595,6 +595,7 @@ def add_enumerable_item_to_dict(dict_, key, item):
dict_ (dict): the dict to modify
key (str): the key to add the item to
item (whatever): The item to add to the list associated to the key
"""
if isinstance(item, (list, tuple)):
try:
Expand All @@ -620,6 +621,7 @@ def remove_empty_keys(values, remove=({}, None, [], 'null')):
Returns:
values (dict/list): a dict or list copy, with empty keys removed.
"""
if isinstance(values, dict):
return {key: remove_empty_keys(value, remove=remove)
Expand Down

0 comments on commit aa8c36f

Please sign in to comment.