From d39faa3fcca949d675ec3fcc7c678ee205e205dc Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Fri, 13 Sep 2013 03:59:28 +0200 Subject: [PATCH] Allow libraries to specify reasons for not finding manga. --- automanga | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/automanga b/automanga index e4f3296..e581b74 100755 --- a/automanga +++ b/automanga @@ -81,8 +81,8 @@ def main(): sys.exit(1) try: mng = lib.byid(mid) - except KeyError: - sys.stderr.write("automanga: no such manga: %s\n" % mid) + except KeyError as e: + sys.stderr.write("automanga: no such manga: %s\n" % str(e)) sys.exit(1) profile.setalias(tgt, libname, mng.id) return @@ -114,8 +114,8 @@ def main(): sys.exit(1) try: mng = lib.byid(args[0]) - except KeyError: - sys.stderr.write("automanga: no such manga: %s\n" % args[0]) + except KeyError as e: + sys.stderr.write("automanga: no such manga: %s\n" % str(e)) sys.exit(1) else: libname = "local" -- 2.11.0