Skip to content

core.py main() crashes on matched articles when no blocklist.py exists #112

Description

@harrislapiroff

In main(), blocklist_instance is only assigned inside the branch where a blocklist.py is loaded, so when no blocklist file is present (the default) every matched article raises cannot access local variable 'blocklist_instance' and is skipped. Fix: initialize blocklist_instance = None before the if os.path.exists(blocklist_path) block (check_for_matches already treats blocklist=None as safe).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions