Fix #235: skip bookmark add if edit aborted
This commit is contained in:
parent
311ca2fa29
commit
e00e3eee18
4
buku.py
4
buku.py
@ -4158,12 +4158,16 @@ POSITIONAL ARGUMENTS:
|
||||
tags = parse_tags(keywords[1:])
|
||||
|
||||
url = args.add[0]
|
||||
edit_aborted = False
|
||||
|
||||
if args.write and not is_int(args.write):
|
||||
result = edit_rec(args.write, url, title_in, tags, desc_in)
|
||||
if result is not None:
|
||||
url, title_in, tags, desc_in = result
|
||||
else:
|
||||
edit_aborted = True
|
||||
|
||||
if edit_aborted == False:
|
||||
if args.suggest:
|
||||
tags = bdb.suggest_similar_tag(tags)
|
||||
bdb.add_rec(url, title_in, tags, desc_in, args.immutable)
|
||||
|
Loading…
x
Reference in New Issue
Block a user