Skip to content

Commit

Permalink
fixed WikiFile argument None value updating
Browse files Browse the repository at this point in the history
  • Loading branch information
tholzheim committed Mar 14, 2022
1 parent 6ddc36d commit f615ad7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wikifile/wikiFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@ def update_arguments(template: Template, args:dict, overwrite=False, prettify:bo
# update argument
if overwrite:
template.del_arg(key)
template.set_arg(key, str(value))
if value is not None:
template.set_arg(key, str(value))
else:
pass
else:
Expand Down

0 comments on commit f615ad7

Please sign in to comment.