From 680205ad7a2e02d42cb5a05b65f447f4766be0bc Mon Sep 17 00:00:00 2001 From: hugo-syn <61210734+hugo-syn@users.noreply.github.com> Date: Tue, 28 Apr 2026 15:25:10 +0200 Subject: [PATCH] Handle Non result --- src/bhcli/cli/mark.py | 2 ++ 1 file changed, 2 insertions(+) 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)