Skip to content

Conversation

@stktyagi
Copy link
Member

An attempt to merge config with wrong format will now raise a validation error instead of failing.

Fixes #351

Checklist

  • I have read the OpenWISP Contributing Guidelines.
  • I have manually tested the changes proposed in this pull request.
  • I have written new test cases for new code and/or updated existing tests for changes to existing code.
  • I have updated the documentation.

Reference to Existing Issue

Closes #351

Description of Changes

Added conditionals to check if two template types can be merged and if not raise validation error instead of failing.



An attempt to merge config with wrong format will now raise a validation error instead of failing.

Fixes openwisp#351
@coveralls
Copy link

coveralls commented Jun 12, 2025

Coverage Status

coverage: 99.178%. remained the same
when pulling a9969bf on stktyagi:master
into 43647b6 on openwisp:master.

stktyagi and others added 2 commits October 26, 2025 15:19
It only prevents the original AttributeError crash and correctly lets the .validate() method handle all validation of the final merged configuration.

Fixes openwisp#351
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.

[bug] Custom template with wrong format can cause uncaught exception

3 participants