summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun <engineerarun@gmail.com>2024-04-08 08:18:12 +0530
committerGitHub <noreply@github.com>2024-04-08 08:18:12 +0530
commitaa24d6d1e4e06c46ef04986ea0ee0db815aeca9b (patch)
tree02c148512f61b23ace48c4463b4654ef2072a974
parent051982c99685358d645648e4d6e067797c0425e7 (diff)
parent957f9b850f9c7c3da33a50cd76db7b1dd16a4c17 (diff)
Merge pull request #730 from LeXofLeviafan/fix-homebrew
[jarun#729] fixed url value passed to update_rec() from CLI
-rwxr-xr-xbuku5
1 files changed, 1 insertions, 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: