File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments