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

Specify bare excepts #467

@jisantuc

Description

@jisantuc

Problem Description

Bare excepts are not PEP8 and make reconstructing intent difficult. There are a lot of them. There should be nearly none.

Replication Steps

From the repository root:

$ ag -lG .py "except:"
django/publicmapping/redistricting/templatetags/redistricting_extras.py
django/publicmapping/redistricting/tasks.py
django/publicmapping/redistricting/views.py
django/publicmapping/redistricting/models.py
django/publicmapping/redistricting/management/commands/setup.py
django/publicmapping/redistricting/calculators.py
django/publicmapping/redistricting/config.py
django/publicmapping/redistricting/tests.py
django/publicmapping/reporting/views.py
django/publicmapping/publicmapping/views.py

Expected Behavior or Output

I should be able to tell where any import is coming from by looking at the import list, or:

$ ag -lG .py "except:"
$

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