Skip to content

Commit d5713da

Browse files
authored
Merge pull request #103 from ynput/bugfix/allow-custom-settings-variants
Settings variant validation less strict
2 parents c014546 + 3abdcf0 commit d5713da

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

ayon_api/server_api.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -655,13 +655,10 @@ def set_default_settings_variant(self, variant):
655655
as default variant.
656656
657657
Args:
658-
variant (Literal['production', 'staging']): Settings variant name.
658+
variant (str): Settings variant name. It is possible to use
659+
'production', 'staging' or name of dev bundle.
659660
"""
660661

661-
if variant not in ("production", "staging"):
662-
raise ValueError((
663-
"Invalid variant name {}. Expected 'production' or 'staging'"
664-
).format(variant))
665662
self._default_settings_variant = variant
666663

667664
default_settings_variant = property(

0 commit comments

Comments
 (0)