We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 882f16b commit 1af1607Copy full SHA for 1af1607
1 file changed
ckan/lib/search/__init__.py
@@ -362,9 +362,9 @@ def check_solr_schema_version(schema_file: Optional[str]=None) -> bool:
362
# Try Managed Schema
363
res = _get_schema_from_solr(SOLR_SCHEMA_FILE_OFFSET_MANAGED)
364
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)
+ except requests.RequestException:
+ log.warn('Problems were found while retrieving the SOLR schema')
+ return False
368
schema_content = res.text
369
else:
370
with open(schema_file, 'rb') as f:
0 commit comments