From d54a68a82b8bc88fb17c5b239e956d9ffeeef0cd Mon Sep 17 00:00:00 2001 From: Jake Ichikawa Date: Thu, 21 Nov 2024 10:17:47 -0800 Subject: [PATCH] change condition order. --- tabpy/tabpy_tools/custom_query_object.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tabpy/tabpy_tools/custom_query_object.py b/tabpy/tabpy_tools/custom_query_object.py index 077e3414..cbc819e3 100644 --- a/tabpy/tabpy_tools/custom_query_object.py +++ b/tabpy/tabpy_tools/custom_query_object.py @@ -71,7 +71,7 @@ def query(self, *args, **kwargs): def get_doc_string(self): """Get doc string from customized query""" - if self.custom_query.__doc__ is not None and sys.platform != "win32": + if sys.platform != "win32" and self.custom_query.__doc__ is not None: return self.custom_query.__doc__ else: return "-- no docstring found in query function --"