From e4ef22a578a7c3d8aa12bdf04d7e504f1fdaa515 Mon Sep 17 00:00:00 2001 From: Jacob Clark Date: Tue, 21 Jul 2026 15:51:19 +0100 Subject: [PATCH] Fixed remnant bug from changed behavior in python 2 where int < None would evaluate to False rather than a ValueError. Manifested when openning another user's user folders --- python/tk_multi_workfiles/actions/interactive_open_action.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/tk_multi_workfiles/actions/interactive_open_action.py b/python/tk_multi_workfiles/actions/interactive_open_action.py index 29790cd3..c2d9c0f1 100644 --- a/python/tk_multi_workfiles/actions/interactive_open_action.py +++ b/python/tk_multi_workfiles/actions/interactive_open_action.py @@ -55,7 +55,7 @@ def execute(self, parent_ui): and (not self._workfiles_visible or not self.file.is_local) ): # opening a publish and either not showing work files or the file isn't local - if self.file.version < max_publish_version: + if max_publish_version and self.file.version < max_publish_version: # opening an old version of a publish! return self._open_previous_publish( self.file, self.environment, parent_ui @@ -78,7 +78,7 @@ def execute(self, parent_ui): # OR # opening a file that is both local and published and both are visible in the view! # (is this the right thing to do when a file is both local and a publish??) - if self.file.version < max_local_version: + if max_local_version and self.file.version < max_local_version: # opening an old version of work file: return self._open_previous_workfile( self.file, self.environment, parent_ui