Skip to content

Commit c9cd698

Browse files
authored
Merge pull request #1223 from geopython/fix-refs
Fix refs
2 parents 0f25925 + 72b1477 commit c9cd698

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

pycsw/core/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def getqattr(obj, name):
292292
def http_request(method, url, request=None, timeout=30):
293293
"""Perform HTTP request"""
294294
if method == 'POST':
295-
return http_post(url, request, timeout=timeout)
295+
return http_post(url, request, timeout=timeout).text
296296
else: # GET
297297
request = Request(url)
298298
request.add_header('User-Agent', 'pycsw (https://pycsw.org/)')

pycsw/ogc/csw/csw2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ def getrecords(self):
835835
from owslib.ows import ExceptionReport
836836
for fedcat in self.parent.config.get('federatedcatalogues', []):
837837
if fedcat['type'] != 'CSW':
838-
LOGGER.debug(f"Federated catalogue type {fc['type']} not supported; skipping")
838+
LOGGER.debug(f"Federated catalogue type {fedcat['type']} not supported; skipping")
839839
continue
840840
LOGGER.debug('Performing distributed search on federated \
841841
catalogue: %s.', fedcat['url'])

pycsw/ogc/csw/csw3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ def getrecords(self):
984984
from owslib.ows import ExceptionReport
985985
for fedcat in self.parent.config.get('federatedcatalogues', []):
986986
if fedcat['type'] != 'CSW':
987-
LOGGER.debug(f"Federated catalogue type {fc['type']} not supported; skipping")
987+
LOGGER.debug(f"Federated catalogue type {fedcat['type']} not supported; skipping")
988988
continue
989989
LOGGER.info('Performing distributed search on federated \
990990
catalogue: %s', fedcat['url'])

0 commit comments

Comments
 (0)