mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Fix logged warnings
This commit is contained in:
parent
45c042cf8d
commit
94b9634555
1 changed files with 3 additions and 2 deletions
|
|
@ -27,12 +27,13 @@ class CollectSceneLoadedVersions(pyblish.api.ContextPlugin):
|
|||
def process(self, context):
|
||||
host = registered_host()
|
||||
if host is None:
|
||||
self.log.warn("No registered host.")
|
||||
self.log.warning("No registered host.")
|
||||
return
|
||||
|
||||
if not hasattr(host, "ls"):
|
||||
host_name = host.__name__
|
||||
self.log.warn("Host %r doesn't have ls() implemented." % host_name)
|
||||
self.log.warning(
|
||||
f"Host {host_name} doesn't have ls() implemented.")
|
||||
return
|
||||
|
||||
loaded_versions = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue