mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
small fixes
This commit is contained in:
parent
83c5e7d0de
commit
ade8d4d47c
2 changed files with 7 additions and 3 deletions
|
|
@ -272,7 +272,9 @@ def convert_to_click(obj_to_convert):
|
|||
command_obj, parent_obj = item
|
||||
if not isinstance(command_obj, Command):
|
||||
raise TypeError(
|
||||
"Invalid type '{}' expected 'Command'".format(type(command_obj))
|
||||
"Invalid type '{}' expected 'Command'".format(
|
||||
type(command_obj)
|
||||
)
|
||||
)
|
||||
|
||||
if isinstance(command_obj, Group):
|
||||
|
|
@ -298,7 +300,9 @@ def convert_to_click(obj_to_convert):
|
|||
elif option_name == "argument":
|
||||
click.argument(*args, **kwargs)(click_obj)
|
||||
else:
|
||||
raise ValueError("Invalid option name '{}'".format(option_name))
|
||||
raise ValueError(
|
||||
"Invalid option name '{}'".format(option_name)
|
||||
)
|
||||
|
||||
if top_obj is None:
|
||||
top_obj = click_obj
|
||||
|
|
|
|||
|
|
@ -488,7 +488,7 @@ class FtrackModule(
|
|||
return cred.get("username"), cred.get("api_key")
|
||||
|
||||
def cli(self, click_group):
|
||||
click_group.add_command(main.to_click_obj())
|
||||
click_group.add_command(cli_main.to_click_obj())
|
||||
|
||||
|
||||
def _check_ftrack_url(url):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue