fix: Correct notifyerrors field name in handlers.py

- Changed all references from 'notify_errors' to 'notifyerrors' to match RotationConfig model
- Fixes issue where notifyerrors setting was not being properly detected
parent 2a522121
...@@ -922,7 +922,7 @@ class RotationHandler: ...@@ -922,7 +922,7 @@ class RotationHandler:
error_details.append(f" - {provider_id}: Not configured") error_details.append(f" - {provider_id}: Not configured")
# Check if notifyerrors is enabled - if so, return error as normal message instead of HTTP 503 # Check if notifyerrors is enabled - if so, return error as normal message instead of HTTP 503
logger.info(f"Checking notify_errors: {notify_errors}") logger.info(f"Checking notifyerrors: {notify_errors}")
if notify_errors: if notify_errors:
logger.info(f"notifyerrors is enabled for rotation '{rotation_id}', returning error as normal message") logger.info(f"notifyerrors is enabled for rotation '{rotation_id}', returning error as normal message")
# Return a normal response with error message instead of HTTP 503 # Return a normal response with error message instead of HTTP 503
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment