diff --git a/bibtexautocomplete/APIs/inspire.py b/bibtexautocomplete/APIs/inspire.py index 4d59275..9fe741c 100644 --- a/bibtexautocomplete/APIs/inspire.py +++ b/bibtexautocomplete/APIs/inspire.py @@ -47,7 +47,8 @@ def get_base_path(self) -> str: return self.path + "/literature/" def get_params(self) -> Dict[str, str]: - base = super().get_params() + base = dict() + base.update(super().get_params()) if self.doi is not None: return base if self.title is not None: diff --git a/bibtexautocomplete/lookups/https.py b/bibtexautocomplete/lookups/https.py index b73b7b1..27efb34 100644 --- a/bibtexautocomplete/lookups/https.py +++ b/bibtexautocomplete/lookups/https.py @@ -259,7 +259,7 @@ def get_data(self) -> Optional[Data]: since_last_query = time() - self.last_query_time wait = self.query_delay - since_last_query if wait > 0.0: - logger.debug("Rate limiter: sleeping for {wait}s", wait=wait) + logger.debug("Rate limiter: sleeping for {wait}s", wait=round(wait, 3)) sleep(wait) self.__class__.last_query_time = time() data = super().get_data()