Skip to content

Commit 6696388

Browse files
try except around docstring.
1 parent ef066ac commit 6696388

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tabpy/tabpy_tools/custom_query_object.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,12 @@ def query(self, *args, **kwargs):
7171

7272
def get_doc_string(self):
7373
"""Get doc string from customized query"""
74-
return str(self.custom_query.__doc__ or "-- no docstring found in query function --")
74+
try:
75+
return str(
76+
self.custom_query.__doc__ or "-- no docstring found in query function --"
77+
)
78+
except:
79+
return "-- no docstring found in query function --"
7580

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

0 commit comments

Comments
 (0)