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 --"