mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
move super call to skip label validations
This commit is contained in:
parent
6d61e2d139
commit
ce5134493d
1 changed files with 1 additions and 3 deletions
|
|
@ -30,9 +30,6 @@ class AppAction(BaseAction):
|
|||
self, session, label, name, executable, variant=None,
|
||||
icon=None, description=None, preactions=[], plugins_presets={}
|
||||
):
|
||||
super().__init__(session, plugins_presets)
|
||||
"""Expects a ftrack_api.Session instance"""
|
||||
|
||||
self.label = label
|
||||
self.identifier = name
|
||||
self.executable = executable
|
||||
|
|
@ -41,6 +38,7 @@ class AppAction(BaseAction):
|
|||
self.description = description
|
||||
self.preactions.extend(preactions)
|
||||
|
||||
super().__init__(session, plugins_presets)
|
||||
if label is None:
|
||||
raise ValueError("Action missing label.")
|
||||
if name is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue