fix: [objects] get_object, filter None string

otp
terrtia 2024-09-12 19:29:18 +02:00
parent a595bb5175
commit a3eb285ce1
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
1 changed files with 2 additions and 0 deletions

View File

@ -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)