Skip to content

Tabs in a column raise a ValueError #30

@YPCrumble

Description

@YPCrumble

Thanks for building this repo!

Currently this line splits the db lines using line.split('\t'): https://github.com/andersinno/python-database-sanitizer/blob/master/database_sanitizer/dump/postgres.py#L126. The issue I'm encountering is that I have columns with user input that sometimes includes tabs. When the sanitizer encounters one of those fields it raises the ValueError.

Currently I've just added return line to skip any lines with tabs - but would be happy to write a PR if anyone has ideas on a graceful way to handle this!

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