Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tabs in a column raise a ValueError #30

Open
YPCrumble opened this issue Jun 16, 2020 · 1 comment
Open

Tabs in a column raise a ValueError #30

YPCrumble opened this issue Jun 16, 2020 · 1 comment

Comments

@YPCrumble
Copy link

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!

@YPCrumble
Copy link
Author

Actually, this is probably more related to django-sanitized-dump interacting with this line. Somehow a particular line is getting exported from django-sanitized-dump with an extra tab character. I'm not sure why yet...but will come back if I find out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant