Skip to content

Commit

Permalink
Re #2896 204 and other 20x responses are OK
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtlmoon committed Jan 10, 2025
1 parent 1c1f1c6 commit 46f5bd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion changedetectionio/apprise_plugin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def apprise_custom_api_call_wrapper(body, title, notify_type, *args, **kwargs):
params=params
)

if r.status_code not in (requests.codes.created, requests.codes.ok):
if not (200 <= r.status_code < 300):
status_str = f"Error sending '{method.upper()}' request to {url} - Status: {r.status_code}: '{r.reason}'"
logger.error(status_str)
has_error = True
Expand Down

0 comments on commit 46f5bd1

Please sign in to comment.