Skip to content
This repository was archived by the owner on Aug 28, 2020. It is now read-only.
This repository was archived by the owner on Aug 28, 2020. It is now read-only.

Attempt to index into config object like a dictionary #147

@Deborah-Digges

Description

@Deborah-Digges

Issue Summary

In config.py, config is an object but we try to index it like a dictionary as seen in this line. This causes the app to fail when I try to send an email.

Steps to Reproduce

  1. python app.py
  2. You will see the following stack trace:
Traceback (most recent call last):
  File "app.py", line 38, in <module>
    update()
  File "app.py", line 24, in update
    if config['export_tables']['PackageManagers']:
TypeError: 'Config' object is not subscriptable

Technical details:

  • Python Version: 3.2.6
  • Browser/OS: Chrome/MacOS
  • Database/Version: Ver 8.0.12 for macos10.13 on x86_64 (MySQL Community Server - GPL)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions