Fix requests.exception import error
This commit is contained in:
parent
dec7257eff
commit
962b4adc23
@ -118,11 +118,9 @@ def delete(filename, identifier):
|
|||||||
|
|
||||||
def get(filename, ignore_fields=[]):
|
def get(filename, ignore_fields=[]):
|
||||||
"""
|
"""
|
||||||
Get an entry from a BibTeX file.
|
Get all entries from a BibTeX file.
|
||||||
|
|
||||||
:param filename: The name of the BibTeX file.
|
:param filename: The name of the BibTeX file.
|
||||||
:param identifier: An optional id of the entry to fetch, in the BibTeX \
|
|
||||||
file.
|
|
||||||
:param ignore_fields: An optional list of fields to strip from the BibTeX \
|
:param ignore_fields: An optional list of fields to strip from the BibTeX \
|
||||||
file.
|
file.
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ plaintext files.
|
|||||||
import os
|
import os
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
from requests.exception import RequestException
|
from requests.exceptions import RequestException
|
||||||
|
|
||||||
from libbmc import doi
|
from libbmc import doi
|
||||||
from libbmc import tools
|
from libbmc import tools
|
||||||
|
@ -10,7 +10,7 @@ import tarfile
|
|||||||
import xml.etree.ElementTree
|
import xml.etree.ElementTree
|
||||||
|
|
||||||
from urllib.error import HTTPError
|
from urllib.error import HTTPError
|
||||||
from requests.exception import RequestException
|
from requests.exceptions import RequestException
|
||||||
|
|
||||||
|
|
||||||
from libbmc import tools
|
from libbmc import tools
|
||||||
|
Loading…
Reference in New Issue
Block a user