Skip to content

Commit

Permalink
Fix code
Browse files Browse the repository at this point in the history
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'
```
  • Loading branch information
BigRoy committed Jun 28, 2024
1 parent 25ada30 commit e1010f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/ayon_core/pipeline/entity_uri.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e1010f9

Please sign in to comment.