diff --git a/src/bhcli/cli/mark.py b/src/bhcli/cli/mark.py index 30ac5dd..21c62fc 100644 --- a/src/bhcli/cli/mark.py +++ b/src/bhcli/cli/mark.py @@ -47,6 +47,8 @@ def mark(tag, objects, file): else: kind = "Computer" result = api.search(obj, kind) + if result == None: + continue result = [x for x in result if x["name"].upper() == obj.upper()] if len(result) < 1: log.warning("No %s object found with name: %s", kind, obj)