From b73be0f990bb7011cf86d443436fbd40b9419592 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 14 Jun 2012 20:00:41 +0530 Subject: [PATCH] ... --- src/calibre/library/cli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calibre/library/cli.py b/src/calibre/library/cli.py index 89241dc601..b62b9e78ff 100644 --- a/src/calibre/library/cli.py +++ b/src/calibre/library/cli.py @@ -574,6 +574,9 @@ def command_set_metadata(args, dbpath): if len(args) > 2: opf = args[2] + if not os.path.exists(opf): + prints(_('The OPF file %s does not exist')%opf, file=sys.stderr) + return 1 do_set_metadata(db, book_id, opf) if opts.field: