Skip to content

Commit

Permalink
print error
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeichikawasalesforce committed Nov 21, 2024
1 parent 0b2ed8e commit 189fd5b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions tabpy/tabpy_tools/custom_query_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,16 @@ def get_doc_string(self):
"""Get doc string from customized query"""
default_docstring = "-- no docstring found in query function --"

# Skip docstring parsing on Windows 32-bit systems
if sys.platform == 'win32':
# TODO: fix docstring parsing on Windows systems
# if sys.platform == 'win32':
# return default_docstring
try:
ds = getattr(self.custom_query, '__doc__', None)
return ds if ds and isinstance(ds, str) else default_docstring
except Exception as e:
print(e)
return default_docstring

ds = getattr(self.custom_query, '__doc__', None)
return ds if ds and isinstance(ds, str) else default_docstring

def get_methods(self):
return [self.get_query_method()]

Expand Down

0 comments on commit 189fd5b

Please sign in to comment.