Skip to content

Commit

Permalink
comment/code tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
dgtlmoon committed Jan 8, 2025
1 parent 5988d52 commit 4bfdf59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion changedetectionio/flask_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,10 @@ def ajax_callback_send_notification_test(watch_uuid=None):

except Exception as e:
e_str = str(e)
e_str=e_str.replace("DEBUG - <class 'apprise.decorators.base.CustomNotifyPlugin.instantiate_plugin.<locals>.CustomNotifyPluginWrapper'>",'')
# Remove this text which is not important and floods the container
e_str = e_str.replace(
"DEBUG - <class 'apprise.decorators.base.CustomNotifyPlugin.instantiate_plugin.<locals>.CustomNotifyPluginWrapper'>",
'')

return make_response(e_str, 400)

Expand Down
2 changes: 1 addition & 1 deletion changedetectionio/tests/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def test_method():
# Where we POST to as a notification
@live_server.app.route('/test_notification_endpoint', methods=['POST', 'GET'])
def test_notification_endpoint():

with open("test-datastore/notification.txt", "wb") as f:
# Debug method, dump all POST to file also, used to prove #65
data = request.stream.read()
Expand Down

0 comments on commit 4bfdf59

Please sign in to comment.