From 615860362a39b769f75cf45a8d0e58d3e218e72a Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Tue, 26 Dec 2023 03:36:06 +0100 Subject: Don't fail entirely on tag import errors --- main.go | 2 +- test.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 04bc307..0d89b06 100644 --- a/main.go +++ b/main.go @@ -1855,7 +1855,7 @@ func cmdTag(args []string) error { return nil } if _, err := stmt.Exec(sha1, spaceID, tag, weight, weight); err != nil { - return fmt.Errorf("%s: %s", sha1, err) + log.Printf("%s: %s\n", sha1, err) } } if err := scanner.Err(); err != nil { diff --git a/test.sh b/test.sh index a5136f4..a51aeb2 100755 --- a/test.sh +++ b/test.sh @@ -7,7 +7,7 @@ mkdir -p $target cp -ra $HOME/Pictures/Anime $input ./gallery init $target -./gallery sync $target $input +./gallery sync $target $input "$@" ./gallery thumbnail $target ./gallery dhash $target ./gallery tag $target autotagger "DanBooru autotagger" \ -- cgit v1.2.3-70-g09d2