X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=automanga;h=ff36282e5dfb77adc77493af1f351c35f492ec86;hb=43bddc57ade144757490bda390fdb96dda0c61bc;hp=98b3c9b948d004796ba8ab7f9bd0e6b310cf5b7a;hpb=d8f4dc3095b2cb8d55dd594ae433f15985197542;p=automanga.git diff --git a/automanga b/automanga index 98b3c9b..ff36282 100755 --- a/automanga +++ b/automanga @@ -79,7 +79,11 @@ def main(): if listtag is not None: if profile is not None: for mprof in profile.bytag(listtag): - mng = mprof.open() + try: + mng = mprof.open() + except KeyError: + sys.stderr.write("%s %s: no longer found\n" % (mprof.libnm, mprof.id)) + continue sys.stdout.write("%s %s: \"%s\"\n" % (mprof.libnm, mprof.id, mng.name)) return @@ -106,7 +110,7 @@ def main(): try: libname, mid = profile.getalias(alias) except KeyError: - sys.stderr("automanga: no such alias: %s\n" % alias) + sys.stderr.write("automanga: no such alias: %s\n" % alias) sys.exit(1) try: lib = manga.lib.findlib(libname)