Skip to content

Commit 1af1607

Browse files
committed
no-solr
1 parent 882f16b commit 1af1607

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ckan/lib/search/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,9 @@ def check_solr_schema_version(schema_file: Optional[str]=None) -> bool:
362362
# Try Managed Schema
363363
res = _get_schema_from_solr(SOLR_SCHEMA_FILE_OFFSET_MANAGED)
364364
res.raise_for_status()
365-
except requests.HTTPError:
366-
# Fallback to Manually Edited schema.xml
367-
res = _get_schema_from_solr(SOLR_SCHEMA_FILE_OFFSET_CLASSIC)
365+
except requests.RequestException:
366+
log.warn('Problems were found while retrieving the SOLR schema')
367+
return False
368368
schema_content = res.text
369369
else:
370370
with open(schema_file, 'rb') as f:

0 commit comments

Comments
 (0)