mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
change exception type and message
This commit is contained in:
parent
f4c47d41d4
commit
5de35b48e5
1 changed files with 3 additions and 3 deletions
|
|
@ -713,9 +713,9 @@ class SyncServerModule(OpenPypeModule, ITrayModule):
|
|||
if site_name not in ("studio", "local"):
|
||||
# Considure local site id as 'local'
|
||||
if site_name != get_local_site_id():
|
||||
raise RuntimeError((
|
||||
"Anatomy could be created only for"
|
||||
" default local sites not for {}"
|
||||
raise ValueError((
|
||||
"Root overrides are available only for"
|
||||
" default sites not for \"{}\""
|
||||
).format(site_name))
|
||||
site_name = "local"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue