mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
use 'get_server_api_connection' to get connection
This commit is contained in:
parent
43787fd9c3
commit
8a5a078c29
1 changed files with 2 additions and 1 deletions
|
|
@ -94,8 +94,9 @@ class Commands:
|
|||
# NOTE: ayon-python-api does not have public api function to find
|
||||
# out if is used service user. So we need to have try > except
|
||||
# block.
|
||||
con = ayon_api.get_server_api_connection()
|
||||
try:
|
||||
ayon_api.set_default_service_username(username)
|
||||
con.set_default_service_username(username)
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue