mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
handle error when api endpoint not available
This commit is contained in:
parent
14fd3fa2da
commit
8f75f714e2
1 changed files with 5 additions and 1 deletions
|
|
@ -56,7 +56,11 @@ class CreateRenderGlobals(avalon.maya.Creator):
|
|||
self.log.info(">>> Loading Muster credentials ...")
|
||||
self._load_credentials()
|
||||
self.log.info(">>> Logging in Muster ...")
|
||||
self._authenticate()
|
||||
try:
|
||||
self._authenticate()
|
||||
except requests.exceptions.ConnectionError:
|
||||
self.log.error("Cannot connect to Muster API endpoint.")
|
||||
raise RuntimeError("Cannot connect to {}".format(muster_url))
|
||||
self.log.info(">>> Getting pools ...")
|
||||
pools = self._get_muster_pools()
|
||||
pool_names = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue