automanga: Handle tag-list failures more gracefully.
authorFredrik Tolf <fredrik@dolda2000.com>
Tue, 19 Apr 2022 17:34:59 +0000 (19:34 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Tue, 19 Apr 2022 17:34:59 +0000 (19:34 +0200)
automanga

index f2281df..01710e4 100755 (executable)
--- a/automanga
+++ b/automanga
@@ -81,6 +81,9 @@ def main():
                 except KeyError:
                     sys.stderr.write("%s %s: no longer found\n" % (mprof.libnm, mprof.id))
                     continue
+                except Exception as exc:
+                    sys.stderr.write("%s %s: unexpected error: %s\n" % (mprof.libnm, mprof.id, str(exc)))
+                    continue
                 sys.stdout.write("%s %s: \"%s\"\n" % (mprof.libnm, mprof.id, mng.name))
         return