caronc / apprise

Apprise - Push Notifications that work with just about every platform!
https://hub.docker.com/r/caronc/apprise
BSD 2-Clause "Simplified" License
10.94k stars 385 forks source link

Resolved ConfigMemory AttributeError Exception #1032

Closed caronc closed 6 months ago

caronc commented 6 months ago

Description:

Related issue (if applicable): n/a

When trying to adapt Apprise v1.7.0 with the Apprise API, the following exception was thrown (relating back to this package):

2023-12-28 12:54:05,342 [ERROR] django.request: Internal Server Error: /json/urls/apprise/
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/django/core/handlers/exception.py", line 55, in inner
    response = get_response(request)
  File "/usr/local/lib/python3.10/site-packages/django/core/handlers/base.py", line 197, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python3.10/site-packages/django/views/generic/base.py", line 104, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/django/utils/decorators.py", line 46, in _wrapper
    return bound_method(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/django/utils/decorators.py", line 134, in _wrapper_view
    response = view_func(request, *args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/django/views/decorators/cache.py", line 62, in _wrapper_view_func
    response = view_func(request, *args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/django/views/generic/base.py", line 143, in dispatch
    return handler(request, *args, **kwargs)
  File "/apprise-api/apprise_api/api/views.py", line 1199, in get
    ac_obj.add_config(config, format=format)
  File "/apprise-api/.local/lib/python3.10/site-packages/apprise/AppriseConfig.py", line 258, in add_config
    instance = config.ConfigMemory.ConfigMemory(
AttributeError: module 'apprise.config' has no attribute 'ConfigMemory'

Checklist

Testing

Anyone can help test this source code as follows:

# Create a virtual environment to work in as follows:
python3 -m venv apprise

# Change into our new directory
cd apprise

# Activate our virtual environment
source bin/activate

# Install the branch
pip install git+https://github.com/caronc/apprise.git@attribute-error-configmemory
codecov-commenter commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (c47de7f) 99.27% compared to head (b9cd303) 99.27%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1032 +/- ## ========================================== - Coverage 99.27% 99.27% -0.01% ========================================== Files 136 136 Lines 17669 17668 -1 Branches 3603 3603 ========================================== - Hits 17541 17540 -1 Misses 119 119 Partials 9 9 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.