mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
Fix code
Traceback:
```
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Ynput\AYON\dependency_packages\ayon_2403061937_windows.zip\dependencies\pyblish\plugin.py", line 527, in __explicit_process
runner(*args)
File "E:\dev\ayon-core\client\ayon_core\plugins\publish\extract_usd_layer_contributions.py", line 556, in process
path = get_instance_uri_path(contribution.instance)
File "E:\dev\ayon-core\client\ayon_core\plugins\publish\extract_usd_layer_contributions.py", line 163, in get_instance_uri_path
path = construct_ayon_entity_uri(
File "E:\dev\ayon-core\client\ayon_core\pipeline\entity_uri.py", line 75, in construct_ayon_entity_uri
if version < 0:
TypeError: '<' not supported between instances of 'str' and 'int'
```
This commit is contained in:
parent
25ada3029f
commit
e1010f9853
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ def construct_ayon_entity_uri(
|
|||
Returns:
|
||||
str: AYON Entity URI to query entity path.
|
||||
"""
|
||||
if version < 0:
|
||||
if isinstance(version, int) and version < 0:
|
||||
version = "hero"
|
||||
if not (isinstance(version, int) or version in {"latest", "hero"}):
|
||||
raise ValueError(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue