Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kebwi committed Dec 6, 2024
1 parent 0f3a5df commit e4a03b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dynamicannotationdb/annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@ def update_table_metadata(
"write_permission": write_permission,
}
update_dict = {k: v for k, v in update_dict.items() if v is not None}
if notice_text.lower() == "none":
notice_text = ""
if notice_text is not None:
if notice_text.lower() == "none":
notice_text = ""
if len(notice_text) == 0:
update_dict["notice_text"] = None
else:
Expand Down

0 comments on commit e4a03b1

Please sign in to comment.