fixed ftrack action labels issue

This commit is contained in:
iLLiCiTiT 2019-08-15 11:30:07 +02:00
parent 00f04cafc2
commit 82d05de4e7

View file

@ -94,13 +94,12 @@ class BaseHandler(object):
def launch_log(self, func):
@functools.wraps(func)
def wrapper_launch(*args, **kwargs):
label = self.__class__.__name__
if hasattr(self, 'label'):
label = self.label
if hasattr(self, 'variant'):
label = '{} {}'.format(self.label, self.variant)
else:
label = self.label
else:
label = self.__class__.__name__
if self.variant is not None:
label = '{} {}'.format(self.label, self.variant)
self.log.info(('{} "{}": Launched').format(self.type, label))
try: