explicit check of host attribute

This commit is contained in:
iLLiCiTiT 2021-09-14 14:13:58 +02:00
parent f6daa24542
commit 82ba630bf8

View file

@ -324,7 +324,7 @@ class CreatedInstance:
self, family, subset_name, data=None, creator=None, host=None,
attr_plugins=None, new=True
):
if not host:
if host is None:
import avalon.api
host = avalon.api.registered_host()