Skip to content

Commit

Permalink
Fix: Handle empty doctrings in optimized mode (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-berchet authored Dec 23, 2023
1 parent 6cb7e95 commit 6bbf134
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions geoalchemy2/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ def authorized_values_in_docstring(**kwargs):
"""

def inner(func):
for k, v in kwargs.items():
func.__doc__ = func.__doc__.replace(f"<{k}>", str(v))
if func.__doc__ is not None:
for k, v in kwargs.items():
func.__doc__ = func.__doc__.replace(f"<{k}>", str(v))
return func

return inner

0 comments on commit 6bbf134

Please sign in to comment.