Change error to warning
This commit is contained in:
parent
7c82a8518b
commit
54a056c277
@ -23,13 +23,13 @@ def command(conf, args):
|
|||||||
ui = get_ui()
|
ui = get_ui()
|
||||||
rp = repo.Repository(conf)
|
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:
|
try:
|
||||||
paper = rp.pull_paper(key)
|
paper = rp.pull_paper(key)
|
||||||
url = paper.bibdata['url']
|
url = paper.bibdata['url']
|
||||||
webbrowser.open(url)
|
webbrowser.open(url)
|
||||||
|
|
||||||
except KeyError as e:
|
except KeyError as e:
|
||||||
ui.error('{} has no url'.format(key))
|
ui.warning('{} has no url'.format(key))
|
||||||
|
|
||||||
rp.close()
|
rp.close()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user