Skip to content

Commit 189fd5b

Browse files
print error
1 parent 0b2ed8e commit 189fd5b

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

tabpy/tabpy_tools/custom_query_object.py

+8-5
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,16 @@ def get_doc_string(self):
7474
"""Get doc string from customized query"""
7575
default_docstring = "-- no docstring found in query function --"
7676

77-
# Skip docstring parsing on Windows 32-bit systems
78-
if sys.platform == 'win32':
77+
# TODO: fix docstring parsing on Windows systems
78+
# 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)
7985
return default_docstring
8086

81-
ds = getattr(self.custom_query, '__doc__', None)
82-
return ds if ds and isinstance(ds, str) else default_docstring
83-
8487
def get_methods(self):
8588
return [self.get_query_method()]
8689

0 commit comments

Comments
 (0)