Skip to content

Mail items not counted when images are missing #17

Description

@nshores

I'm going to be handling this, but I wanted to point out the fact that the code for counting mail items relies on a image being present for the mail item in question. Many times, there will be mail items present without a scanned image. The current logic for checking for mail items assumes a image will always be present.

for row in parsed.find_all('div', {'class': 'mailpiece'}):
    image = _get_mailpiece_image(row)
    if not image:

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions