Skip to content

Commit

Permalink
Add check for trivial cases
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Aug 6, 2018
1 parent 5113fe5 commit 0347504
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions buku.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,9 @@ def delete_tag_at_index(self, index, tags_in, delay_commit=False, chatty=True):
True on success, False on failure.
"""

if tags_in is None or tags_in == DELIM:
return True

tags_to_delete = tags_in.strip(DELIM).split(DELIM)

if index == 0:
Expand Down

0 comments on commit 0347504

Please sign in to comment.