From b6e8139bc3ca246accc317290cd8d88d6348ec9a Mon Sep 17 00:00:00 2001 From: Fabien Benureau Date: Sun, 20 Dec 2015 22:22:11 +0100 Subject: [PATCH] Remove extraneous doc message --- pubs/commands/add_cmd.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pubs/commands/add_cmd.py b/pubs/commands/add_cmd.py index f53f4a6..bbb9c70 100644 --- a/pubs/commands/add_cmd.py +++ b/pubs/commands/add_cmd.py @@ -134,18 +134,18 @@ def command(conf, args): try: rp.push_paper(p) + ui.message('added to pubs:\n{}'.format(pretty.paper_oneliner(p))) if docfile is not None: rp.push_doc(p.citekey, docfile, copy=copy or args.move) if copy: if move: content.remove_file(docfile) - ui.message('added to pubs:\n{}'.format(pretty.paper_oneliner(p))) - if copy: - if move: - ui.message('{} was moved to the pubs repository.'.format(docfile)) - else: - ui.message('{} was copied to the pubs repository.'.format(docfile)) + if copy: + if move: + ui.message('{} was moved to the pubs repository.'.format(docfile)) + else: + ui.message('{} was copied to the pubs repository.'.format(docfile)) except ValueError as v: ui.error(v.message)