X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=automanga;h=e5f0a7a7acc95a4edf36f7be3e6d41615dc7e73e;hb=1e28222bb93251b69b2dccdc1ef4fe524a73e84a;hp=8fad81758b93a560e0f6bd87cf619d18b8e15e3b;hpb=5c000565c156ae32de0480e83d98f12e65f14f03;p=automanga.git diff --git a/automanga b/automanga index 8fad817..e5f0a7a 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 @@ -152,7 +156,6 @@ def main(): if mprof is not None: ntags = [tag for tag in args if tag[:1] != "-"] rtags = [tag[1:] for tag in args if tag[:1] == "-"] - print ntags, rtags if ntags: mprof.tags.add(*ntags) if rtags: mprof.tags.remove(*rtags) return