Change error to warning

This commit is contained in:
ksunden 2018-05-14 18:38:43 -05:00
parent 7c82a8518b
commit 54a056c277

View File

@ -23,13 +23,13 @@ def command(conf, args):
ui = get_ui()
rp = repo.Repository(conf)
for key in resolve_citekey_list(rp, args.citekey, ui=ui, exit_on_fail=True):
for key in resolve_citekey_list(rp, args.citekey, ui=ui, exit_on_fail=False):
try:
paper = rp.pull_paper(key)
url = paper.bibdata['url']
webbrowser.open(url)
except KeyError as e:
ui.error('{} has no url'.format(key))
ui.warning('{} has no url'.format(key))
rp.close()