Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolved ConfigMemory AttributeError Exception #1032

Merged
merged 2 commits into from
Dec 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions apprise/AppriseConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

from . import config
from . import ConfigBase
from . import CONFIG_FORMATS
from .ConfigurationManager import ConfigurationManager
Expand Down Expand Up @@ -255,7 +254,7 @@ def add_config(self, content, asset=None, tag=None, format=None,
logger.debug("Loading raw configuration: {}".format(content))

# Create ourselves a ConfigMemory Object to store our configuration
instance = config.ConfigMemory.ConfigMemory(
instance = C_MGR['memory'](
content=content, format=format, asset=asset, tag=tag,
recursion=recursion, insecure_includes=insecure_includes)

Expand Down Expand Up @@ -330,7 +329,7 @@ def instantiate(url, asset=None, tag=None, cache=None,
schema = GET_SCHEMA_RE.match(url)
if schema is None:
# Plan B is to assume we're dealing with a file
schema = config.ConfigFile.ConfigFile.protocol
schema = 'file'
url = '{}://{}'.format(schema, URLBase.quote(url))

else:
Expand Down