Remove unnecessary function from earlier commit.
This commit is contained in:
parent
f3c83668f9
commit
35f209a98a
@ -68,19 +68,6 @@ def bibentry_from_editor(conf, ui, rp):
|
||||
return bibentry
|
||||
|
||||
|
||||
def api_call(fn, arg):
|
||||
"""Calls the appropriate API command.
|
||||
|
||||
:param fn: The API function to call.
|
||||
:param arg: The argument to give the API call.
|
||||
"""
|
||||
bibentry_raw = fn(arg)
|
||||
bibentry = rp.databroker.verify(bibentry_raw)
|
||||
return bibentry
|
||||
if bibentry is None:
|
||||
ui.error('invalid doi {} or unable to retrieve bibfile from it.'.format(args.doi))
|
||||
|
||||
|
||||
def command(conf, args):
|
||||
"""
|
||||
:param bibfile: bibtex file (in .bib, .bibml or .yaml format.
|
||||
|
Loading…
x
Reference in New Issue
Block a user