Skip to content
This repository was archived by the owner on Jan 28, 2026. It is now read-only.

Commit 2d9c0ae

Browse files
authored
Merge pull request #50 from eea/develop
fix: PloneSaaS failure due to missing sparql endpoint - refs #274234
2 parents 0bbbd71 + c8977e8 commit 2d9c0ae

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

docs/HISTORY.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Changelog
22
=========
33

4+
4.3 - (2025-01-11)
5+
---------------------------
6+
* Change: fix: PloneSaaS failure due to missing sparql endpoint - refs #274234
7+
[avoinea]
8+
49
4.2 - (2024-05-02)
510
---------------------------
611
* Change: allow script deactivation of users (i.e. without redirect)

eea/ldapadmin/countries.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,12 @@
5858
def update_countries():
5959
""" Return country data from EEA Semantic Service
6060
and store them in json """
61-
s = sparql.Service(SPARQL_ENDPOINT)
62-
results = [i for i in s.query(SPARQL_QUERY).fetchone()]
61+
try:
62+
s = sparql.Service(SPARQL_ENDPOINT)
63+
results = [i for i in s.query(SPARQL_QUERY).fetchone()]
64+
except Exception as e:
65+
logger.error("Couldn't import countries: %s", e)
66+
results = []
6367
countries = []
6468
if results:
6569
for item in results:

eea/ldapadmin/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.2
1+
4.3

0 commit comments

Comments
 (0)