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

AttributeError: 'list' object has no attribute 'translate' #19

Open
YPCrumble opened this issue Dec 26, 2018 · 0 comments
Open

AttributeError: 'list' object has no attribute 'translate' #19

YPCrumble opened this issue Dec 26, 2018 · 0 comments

Comments

@YPCrumble
Copy link

Hi - I'm trying to run the dump from my Django instance and getting the following error. Let me know if I could provide any further information to shed more light on the issue? Thanks again for building this!

Traceback (most recent call last):
  File "/.virtualenvs/bin/database-sanitizer", line 11, in <module>
    sys.exit(main())
  File "/lib/python3.7/site-packages/database_sanitizer/__main__.py", line 57, in main
    config=config,
  File "/lib/python3.7/site-packages/database_sanitizer/dump/__init__.py", line 46, in run
    for line in db_module.sanitize(url=parsed_url, config=config):
  File "/lib/python3.7/site-packages/database_sanitizer/dump/postgres.py", line 71, in sanitize
    yield sanitize_value_line(line)
  File "/lib/python3.7/site-packages/database_sanitizer/dump/postgres.py", line 115, in sanitize_line
    for (sanitizer, value) in zip(sanitizers, values))
  File "/lib/python3.7/site-packages/database_sanitizer/dump/postgres.py", line 115, in <genexpr>
    for (sanitizer, value) in zip(sanitizers, values))
  File "/lib/python3.7/site-packages/database_sanitizer/dump/postgres.py", line 100, in decode_sanitize_encode
    return encode_copy_value(sanitizer(decode_copy_value(value)))
  File "/lib/python3.7/site-packages/database_sanitizer/utils/postgres.py", line 119, in encode_copy_value
    return value.translate(ENCODE_TRANSLATE_TABLE)
AttributeError: 'list' object has no attribute 'translate'
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