diff --git a/pype/modules/ftrack/actions/action_batch_task_creation.py b/pype/modules/ftrack/actions/action_batch_task_creation.py index 89e2977aad..ef370d55eb 100644 --- a/pype/modules/ftrack/actions/action_batch_task_creation.py +++ b/pype/modules/ftrack/actions/action_batch_task_creation.py @@ -158,7 +158,7 @@ class BatchTasksAction(BaseAction): } -def register(session, plugins_presets={}): +def register(session, plugins_presets=None): '''Register action. Called when used as an event plugin.''' BatchTasksAction(session, plugins_presets).register() diff --git a/pype/modules/ftrack/lib/ftrack_base_handler.py b/pype/modules/ftrack/lib/ftrack_base_handler.py index c7144bb2f7..ce6607d6bf 100644 --- a/pype/modules/ftrack/lib/ftrack_base_handler.py +++ b/pype/modules/ftrack/lib/ftrack_base_handler.py @@ -36,7 +36,7 @@ class BaseHandler(object): ignore_me = False preactions = [] - def __init__(self, session, plugins_presets={}): + def __init__(self, session, plugins_presets=None): '''Expects a ftrack_api.Session instance''' self.log = Logger().get_logger(self.__class__.__name__) if not( @@ -57,6 +57,8 @@ class BaseHandler(object): # Using decorator self.register = self.register_decorator(self.register) self.launch = self.launch_log(self.launch) + if plugins_presets is None: + plugins_presets = {} self.plugins_presets = plugins_presets # Decorator