From 957f9b850f9c7c3da33a50cd76db7b1dd16a4c17 Mon Sep 17 00:00:00 2001 From: LeXofLeviafan Date: Mon, 8 Apr 2024 02:35:06 +0200 Subject: [jarun#729] fixed url value passed to update_rec() from CLI --- buku | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/buku b/buku index 67d2ce1..b54ae88 100755 --- a/buku +++ b/buku @@ -6199,10 +6199,7 @@ POSITIONAL ARGUMENTS: # Update record if args.update is not None: - if args.url is not None: - url_in = args.url[0] - else: - url_in = '' + url_in = (args.url[0] if args.url else None) # Parse tags into a comma-separated string if tags_in: -- cgit v1.2.3