change exception type and message

This commit is contained in:
Jakub Trllo 2023-02-23 18:13:14 +01:00 committed by Jakub Trllo
parent f4c47d41d4
commit 5de35b48e5

View file

@ -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"