We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b2ed8e commit 189fd5bCopy full SHA for 189fd5b
tabpy/tabpy_tools/custom_query_object.py
@@ -74,13 +74,16 @@ def get_doc_string(self):
74
"""Get doc string from customized query"""
75
default_docstring = "-- no docstring found in query function --"
76
77
- # Skip docstring parsing on Windows 32-bit systems
78
- if sys.platform == 'win32':
+ # TODO: fix docstring parsing on Windows systems
+ # if sys.platform == 'win32':
79
+ # return default_docstring
80
+ try:
81
+ ds = getattr(self.custom_query, '__doc__', None)
82
+ return ds if ds and isinstance(ds, str) else default_docstring
83
+ except Exception as e:
84
+ print(e)
85
return default_docstring
86
- ds = getattr(self.custom_query, '__doc__', None)
- return ds if ds and isinstance(ds, str) else default_docstring
-
87
def get_methods(self):
88
return [self.get_query_method()]
89
0 commit comments