From a3eb285ce13e14580555eae9736ca811bacf2866 Mon Sep 17 00:00:00 2001 From: terrtia Date: Thu, 12 Sep 2024 19:29:18 +0200 Subject: [PATCH] fix: [objects] get_object, filter None string --- bin/lib/objects/ail_objects.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/lib/objects/ail_objects.py b/bin/lib/objects/ail_objects.py index eb6e84d1..ce2679d4 100755 --- a/bin/lib/objects/ail_objects.py +++ b/bin/lib/objects/ail_objects.py @@ -70,6 +70,8 @@ def sanitize_objs_types(objs, default=False): #### OBJECT #### def get_object(obj_type, subtype, obj_id): + if subtype == 'None': + subtype = None if not subtype: if obj_type == 'item': return Item(obj_id)