Skip to content

Fix presence check for replication script in style tester#2466

Merged
joto merged 1 commit into
osm2pgsql-dev:masterfrom
lonvia:optional-replication-in-test
May 14, 2026
Merged

Fix presence check for replication script in style tester#2466
joto merged 1 commit into
osm2pgsql-dev:masterfrom
lonvia:optional-replication-in-test

Conversation

@lonvia
Copy link
Copy Markdown
Collaborator

@lonvia lonvia commented May 14, 2026

The spec_from_loader() function does not check for validity of the file. So simply check for presence of the file. Also adds a little try-except around the module execution to print an additional message pointing towards the replication script if loading of the module goes wrong.

Fixes #2464.

spec_from_loader does not check for validity of the file.
@joto joto merged commit 8b7d01a into osm2pgsql-dev:master May 14, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

running osm2pgsql-test-style standalone fails without osm2pgsql_replication

2 participants